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

x/discordeno/helpers/mod.ts>createRole

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

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

Parameters

bot: Bot
guildId: bigint
optional
reason: string