Skip to main content
Module

x/harmony/mod.ts>RESTEndpoints#modifyGuildRolePositions

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

Modify the positions of a set of role objects for the guild. Requires the MANAGE_ROLES permission. Returns a list of all of the guild's role objects on success. Fires multiple Guild Role Update Gateway events. This endpoint takes a JSON array of parameters in the following format:

Parameters

guildId: string
payload: Array<{ id: string; position: number; }>