GuildBan
classe · Source
Represents a ban in a guild on Discord.
Extends: Base
Properties
guild
guild: Guild
The guild in which the ban is Source
user
user: User
The user this ban applies to Source
reason
reason: string
The reason for the ban Source
partial
partial: boolean
Whether this GuildBan is partial. If the reason is not provided the value is null Source
client
client: Client
The client that instantiated this Source
Methods
fetch
fetch(force?: boolean): Promise<GuildBan>
Fetches this GuildBan. Parameters
| Name | Type | Description |
|---|---|---|
force? | boolean | Whether to skip the cache check and request the API Default: true. |
Returns: Promise<GuildBan>Source