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

x/discordeno/helpers/guilds/mod.ts>getBan

Discord API library for Deno
Go to Latest
function getBan
import { getBan } from "https://deno.land/x/discordeno@17.0.0/helpers/guilds/mod.ts";

Gets a ban by user ID.

Parameters

bot: Bot
  • The bot instance to use to make the request.
guildId: BigString
  • The ID of the guild to get the ban from.
userId: BigString
  • The ID of the user to get the ban for.

Returns

Promise<Ban>

An instance of Ban.