Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/harmony/src/structures/guild.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/src/structures/guild.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>