mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 01:10:07 +00:00
9 lines
308 B
TypeScript
9 lines
308 B
TypeScript
import { Bot } from "../../bot.ts";
|
|
|
|
/** Kick a member from the server */
|
|
export async function kickMember(bot: Bot, guildId: bigint, memberId: bigint, reason?: string) {
|
|
await bot.rest.runMethod<undefined>(bot.rest, "delete", bot.constants.endpoints.GUILD_MEMBER(guildId, memberId), {
|
|
reason,
|
|
});
|
|
}
|