Update banMember.ts

This commit is contained in:
ITOH
2021-11-14 20:36:23 +01:00
parent 340488fc73
commit fdd600e88b
+1 -1
View File
@@ -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",