Module

x/discordeno/mod.ts>getBan

Discord API library for Deno
Latest
function getBan
import { getBan } from "https://dotland.deno.dev/x/discordeno@18.0.1/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 {@link Ban}.