Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
function banMember
import { banMember } from "https://deno.land/x/discordeno@13.0.0-rc45/plugins/fileloader/deps.ts";

Ban a user from the guild and optionally delete previous messages sent by the user. Requires the BAN_MEMBERS permission.

Parameters

bot: Bot
guildId: bigint
id: bigint
optional
options: CreateGuildBan