Urgent.News

What's breaking now, across thousands of outlets.

Tech

Discord gives your bot exactly 100 slash commands. I hit 100 and found out from a failing test.

Discord limits an app to 100 global slash commands. Subcommands and subcommand groups do not count toward it. My bot, Akiko, sits at exactly 100. I learned where the wall is the hard way. I added a /settings command, the total became 101, and a test failed with expected 101 to be less than or equal to 100 . In production the same mistake shows up as Discord error code 30032 when you deploy your…

Discord enforces a limit of 100 global slash commands for apps. This limit applies to both individual commands and subcommands, with subcommands and subcommand groups not counting toward the total. The author discovered this limit while working on their Discord bot, Akiko, which had exactly 100 commands. They added a "/settings" command, causing the count to reach 101, leading to a failing test that resulted in Discord error code 30032 during deployment.

To avoid this issue, the author implemented a test that builds and checks the total number of commands before deployment. The test's documentation also outlines several strategies to work within the 100-command limit, such as folding a command into an existing one or making it prefix- or developer-only. Ultimately, the author emphasizes the importance of designing command names as groups from the outset and never assuming that permissions set on a subcommand will be enforced, as this should be verified in the code.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

I built a company of bots

Most agent demos are one clever prompt. I wanted to see what happens when you organize agents the way a real company is organized: departments, specialists, and someone at the top deciding who does…

  • Botropolis is a one-man company with AI agents for each department.
  • CEO agent coordinates tasks, assigns agents, and compiles reports.
  • YAML specs ensure transparency and performance analytics optimization.

Your Discord bot's member cache is lying to you. Mine never timed out a single member.

I set largeThreshold: 50 in my Discord bot's client config. The comment next to it said it saved memory with no functional loss. That was wrong, and it took a log search to find out how wrong.

  • Discord bot's member cache incomplete, missing offline members
  • LargeThreshold config setting causes functional loss
  • Author resolved by separate table for pending verification

More from Wednesday 30 September →