GuildBan

export class GuildBan extends Base
export class GuildBan extends Base
Represents a ban in a guild on Discord.

Extends

Base
Readonly
client:Client<true>
The client that instantiated this
Inherited from Base
guild:Guild
The guild in which the ban is
Readonly
partial:boolean
Whether this GuildBan is partial. If the reason is not provided the value is null
reason?:string | null
The reason for the ban
user:User
The user this ban applies to
fetch(force?):Promise<GuildBan>
Fetches this GuildBan.
NameTypeOptionalDescription
forcebooleanYesWhether to skip the cache check and request the API
toJSON(...props):unknown
NameTypeOptionalDescription
...propsRecord<string, boolean | string>[]NoNone
Inherited from Base
valueOf():string