Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/discordeno/plugins/cache/deps.ts>removeRole

Discord API library for Deno
Go to Latest
function removeRole
import { removeRole } from "https://deno.land/x/discordeno@17.2.0/plugins/cache/deps.ts";

Removes a role from a member.

Parameters

bot: Bot
  • The bot instance to use to make the request.
guildId: BigString
  • The ID of the guild the member to remove the role from is in.
userId: BigString
  • The user ID of the member to remove the role from.
roleId: BigString
  • The ID of the role to remove from the member.
optional
reason: string