FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
mattx
mattxregister_discord_commands
Public
Like
1
register_discord_commands
Home
Code
2
README.md
main.tsx
Branches
1
Pull requests
Remixes
2
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
3/17/2023
Viewing readonly version of main branch: v4
View latest version
README.md

register_discord_commands

Registers slash commands for your Discord bot, globally or in one guild. Note that this overwrites old commands.

  • app_id: Your bot's application ID as a string
  • guild_id: Provide a guild ID as a string to apply the commands only in one guild, or use null to apply globally. Note that applying commands globally takes a while on Discord's end.
  • token: Your bot's token.
  • commands: An array of command objects to register. For a basic command with no arguments, only name and description are needed.

Migrated from folder: discord/register_discord_commands

Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.