Skip to main content
Module

x/discordeno/mod.ts>createRole

Discord API library for Deno
Extremely Popular
Go to Latest
function createRole
import { createRole } from "https://deno.land/x/discordeno@13.0.0-rc45/mod.ts";

Create a new role for the guild. Requires the MANAGE_ROLES permission.

Parameters

bot: Bot
guildId: bigint
optional
reason: string