Skip to content

GuildBan

GuildBan ⇐ Base

Represents a ban for a user in a guild.

Kind: global class
Extends: Base

new GuildBan(data, guildId, client)

ParamTypeDescription
dataObjectThe data for the ban.
guildIdstringThe ID of the guild.
clientClientThe instantiating client

guildBan.partial : boolean

Whether or not the ban is partial.

Kind: instance property of GuildBan

guildBan.reason : string

The reason for the ban.

Kind: instance property of GuildBan

guildBan.user

The user who was banned.

Kind: instance property of GuildBan

guildBan.guildId : string

The ID of the guild the ban was issued in.

Kind: instance property of GuildBan

guildBan.guild : Guild

The guild that this ban was issued in.

Kind: instance property of GuildBan
Read only: true

guildBan.fetch([options]) ⇒ Promise.<GuildBan>

Fetches this ban from the API.

Kind: instance method of GuildBan

ParamTypeDescription
[options]ObjectAdditional options for the fetch.

guildBan.remove([options]) ⇒ Promise.<GuildBan>

Fetches this ban from the API.

Kind: instance method of GuildBan

ParamTypeDescription
[options]ObjectAdditional options for the fetch.