Appearance
ClientUser
Package: @erinjs/core
Constructor
| Name | Type | Optional | Description |
|---|---|---|---|
client | Client | No | |
data | APIUserPartial | No |
Properties
| Name | Type | Readonly | Optional | Description |
|---|---|---|---|---|
client | Client | Yes | No |
Methods
fetchGuilds() async
Fetch guilds the bot is a member of.
Returns: Promise<Guild[]>
Parameters:
None
leaveGuild() async
Leave a guild. Requires the bot to be a member.
Returns: Promise<void>
Parameters:
| Name | Type | Optional | Description |
|---|---|---|---|
guildId | string | No | The guild ID to leave |