import type { Bot } from "../../bot.ts"; /** Remove a role from the member */ export async function removeRole(bot: Bot, guildId: bigint, memberId: bigint, roleId: bigint, reason?: string) { await bot.rest.runMethod( bot.rest, "delete", bot.constants.endpoints.GUILD_MEMBER_ROLE(guildId, memberId, roleId), { reason }, ); }