Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
function createGlobalApplicationCommand
import { createGlobalApplicationCommand } from "https://deno.land/x/discordeno@18.0.1/template/beginner/deps.ts";

Creates an application command accessible globally; across different guilds and channels.

Parameters

bot: Bot
  • The bot instance to use to make the request.
command: CreateApplicationCommand
  • The command to create.

Returns

Promise<ApplicationCommand>

An instance of the created ApplicationCommand.