Skip to content
David Cole edited this page Sep 21, 2020 · 30 revisions

Guilds are known as 'Discord Servers' in the Discord application.

Methods

getInvites(): Promise(Collection[Invite])

Retrieves a list of invites in the guild. Returns a collection of invites in a promise.

getVoiceRegions(): Promise(Collection[object])

Retrieves a list of valid voice regions. Returns a collection of objects describing voice regions in a promise.

createRole(array $data): Promise(Role)

Creates a role in the guild with a given array of attributes. Returns the created role in a promise.

transferOwnership(Member|snowflake $member): Promise

Transfers the ownership of the guild to another member. The bot must be the owner of the guild. Returns a promise with no data.

Repositories

$guild->roles: Role[] $guild->channels: Channel[] $guild->members: Member[] $guild->invites: Invite[] $guild->bans: Ban[] $guild->emojis: Emoji[]

Clone this wiki locally