Class GlobalGuildBanManager

Manages guild bans in all servers.

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

Properties

cache: Collection<string, MemberBan> = ...
client: Client

Accessors

Methods

  • Fetches a member ban in a server.

    Parameters

    • serverId: string

      The ID of the server.

    • userId: string

      The ID of the user.

    • Optional force: boolean

      Whether to force fetch the ban even if it's cached.

    Returns Promise<MemberBan>

    A Promise that resolves with the fetched member ban.

  • Unbans a user from a server.

    Parameters

    • serverId: string

      The ID of the server.

    • userId: string

      The ID of the user.

    • removeBanIfCached: boolean = false

      Whether to remove the ban from the cache if it exists.

    Returns Promise<null | MemberBan>

    A Promise that resolves with the unbanned member ban or null if it isn't cached.

Generated using TypeDoc