Best Practices
Follow best practices to guarantee a good user experience for users.
Information density
Error handles
try {
const theme = await client.context.getTheme();
// ...
} catch (error) {
if (error instanceof IPCError) {
console.log(error.message);
switch (error.code) {
case "TIMEOUT":
// handle timeout error
break;
case "FORBIDDEN":
// handle timeout error
break;
}
}
}Code (`error.code`)
Message (`error.message`)
Bundle size
Security
Automatic updates
Rate limits
Last updated