Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/harmony/src/structures/guild.ts>GuildBans

An easy to use Discord API Library for Deno.
Go to Latest
class GuildBans
extends Base
import { GuildBans } from "https://deno.land/x/harmony@v2.6.0/src/structures/guild.ts";

Constructors

new
GuildBans(client: Client, guild: Guild)

Methods

add(
user: string | User,
reason?: string,
deleteMessagesDays?: number,
): Promise<void>

Bans a User.

all(): Promise<GuildBan[]>

Gets all bans in the Guild.

get(user: string | User): Promise<GuildBan>

Gets ban details of a User if any.

remove(user: string | User, reason?: string): Promise<boolean>

Unbans (removes ban from) a User.