Skip to main content
Module

x/harmony/mod.ts>GuildBans#add

An easy to use Discord API Library for Deno.
Go to Latest
method GuildBans.prototype.add
import { GuildBans } from "https://deno.land/x/harmony@v2.9.0/mod.ts";

Bans a User.

Parameters

user: string | User

User to ban, ID or User object.

optional
reason: string

Reason for the Ban.

optional
deleteMessagesDays: number

Delete Old Messages? If yes, how much days.

Returns

Promise<void>