Skip to content

ClientUser

Package: @erinjs/core

Constructor

NameTypeOptionalDescription
clientClientNo
dataAPIUserPartialNo

Properties

NameTypeReadonlyOptionalDescription
clientClientYesNo

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:

NameTypeOptionalDescription
guildIdstringNoThe guild ID to leave

Released under the Apache-2.0 License.