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

x/discordeno/plugins/cache/deps.ts>getBan

Discord API library for Deno
Go to Latest
function getBan
import { getBan } from "https://deno.land/x/discordeno@17.2.0/plugins/cache/deps.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.