class GuildBan

extends

Base
export class GuildBan extends Base

Represents a ban in a guild on Discord.

readonly
client : Client

The client that instantiated this

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

optional
reason? : string | null

The reason for the ban

user : User

The user this ban applies to

fetch(
force?: boolean
) : Promise<GuildBan>

Fetches this GuildBan.

toJSON(
...props: Record<string, boolean | string>[]
) : unknown

Inherited from: Base

valueOf() : string

Inherited from: Base