Module

x/discordeno/helpers/mod.ts>createRole

Discord API library for Deno
Go to Latest
function createRole
import { createRole } from "https://dotland.deno.dev/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