Skip to content

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

nullable

reason: string

The reason for the ban Source

partial

readonly

partial: boolean

Whether this GuildBan is partial. If the reason is not provided the value is null Source

client

readonly

client: Client

The client that instantiated this Source

Methods

fetch

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

Fetches this GuildBan. Parameters

NameTypeDescription
force?booleanWhether to skip the cache check and request the API Default: true.

Returns: Promise<GuildBan>Source

Unofficial software. Not affiliated with or supported by Discord.