mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 16:57:22 +00:00
Update banMember.ts
This commit is contained in:
@@ -2,7 +2,7 @@ import type { CreateGuildBan } from "../../types/guilds/create_guild_ban.ts";
|
||||
import type { Bot } from "../../bot.ts";
|
||||
|
||||
/** Ban a user from the guild and optionally delete previous messages sent by the user. Requires the BAN_MEMBERS permission. */
|
||||
export async function ban(bot: Bot, guildId: bigint, id: bigint, options?: CreateGuildBan) {
|
||||
export async function banMember(bot: Bot, guildId: bigint, id: bigint, options?: CreateGuildBan) {
|
||||
return await bot.rest.runMethod<undefined>(
|
||||
bot.rest,
|
||||
"put",
|
||||
|
||||
Reference in New Issue
Block a user