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

Bulk edit existing application commands. If a command does not exist, it will create it.

NOTE: Any application commands that are not specified in this function will be deleted. If you don't provide the commandId and rename your command, the command gets a new Id.