Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/discordeno_patched/plugins/fileloader/deps.ts>addRole

Discord API library for Node and Deno
Latest
function addRole
import { addRole } from "https://deno.land/x/discordeno_patched@18.0.3/plugins/fileloader/deps.ts";

Adds a role to a member.

Parameters

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

Returns

Promise<void>