Skip to main content
Module

x/harmony/mod.ts>RESTEndpoints#addGuildMemberRole

An easy to use Discord API Library for Deno.
Go to Latest
method RESTEndpoints.prototype.addGuildMemberRole
Re-export
import { RESTEndpoints } from "https://deno.land/x/harmony@v2.9.0/mod.ts";

Adds a role to a guild member. Requires the MANAGE_ROLES permission. Returns a 204 empty response on success. Fires a Guild Member Update Gateway event.

Parameters

guildId: string
userId: string
roleId: string

Returns

Promise<void>