DB Library
Max 30 calls per command. Keys ≤ 512 B, Values ≤ 16 KB (number, string, boolean).
| Function | Arguments | Returns |
| db.set | key: string, value: number|string|boolean | none |
Sets a value in the database. Overwrites any existing value for the same key.
| Function | Arguments | Returns |
| db.get | key: string | number|string|boolean|null |
Retrieves the value for a key. Returns null if the key does not exist.
| Function | Arguments | Returns |
| db.remove | key: string | none |
Removes a key-value pair from the database.
Mem Library
Similar to DB library, but data is temporary and cleared on restart.
| Function | Arguments | Returns |
| mem.set | key: string, value: number|string|boolean | none |
Stores a temporary value in memory for the session.
| Function | Arguments | Returns |
| mem.get | key: string | number|string|boolean|null |
Retrieves a value from memory. Returns null if not found.
| Function | Arguments | Returns |
| mem.remove | key: string | none |
Deletes a key-value pair from memory.
Utils Library
| Function | Arguments | Returns |
| utils.getRole | nameOrId: string | role object|null |
Finds a role by name or ID in the current guild.
| Function | Arguments | Returns |
| utils.hasRole | memberLike: string, roleId: string | boolean |
Checks if a member has a specific role.
| Function | Arguments | Returns |
| utils.addRoles | memberId: string, roleIds: [string] | none |
Adds specified roles for member.
| Function | Arguments | Returns |
| utils.removeRoles | memberId: string, roleIds: [string] | none |
Removes specified roles from member.
| Function | Arguments | Returns |
| utils.getMember | nameOrId: string | member object|null |
Finds a guild member by username or ID.
| Function | Arguments | Returns |
| utils.rand | min: number, max: number | number |
Generates a random number between min and max (inclusive).
Embed Library
| Function | Arguments | Returns |
| embed.new | data: embedData | embed object |
Creates a new embed object based on the given embedData.
Argument Library
| Function | Arguments | Returns |
| arg.get | index: number | string |
Returns the argument at the given index as a string.
| Function | Arguments | Returns |
| arg.getType | index: number, type: argType | any |
Returns the argument at the given index cast to the specified type.
| Function | Arguments | Returns |
| arg.getAll | () | Array<string> |
Returns all arguments as an array of strings.
Language Library
| Function | Arguments | Returns |
| lang.getLocale | userId: number? | string |
Returns locale of the given user. Defaults to the userId of the command caller.
| Function | Arguments | Returns |
| lang.translate | val: transData, locale: string? | string |
Picks one of the options in transData from given locale. Defaults to the locale of the command caller.