Title: Significant Delay in Slash Command Registration for Guild-Specific Commands · Issue #2270 · DSharpPlus/DSharpPlus · GitHub
Open Graph Title: Significant Delay in Slash Command Registration for Guild-Specific Commands · Issue #2270 · DSharpPlus/DSharpPlus
X Title: Significant Delay in Slash Command Registration for Guild-Specific Commands · Issue #2270 · DSharpPlus/DSharpPlus
Description: Summary Slash command registration experiences a significant delay (up to 30 seconds or longer) after the bot has fully started when registering guild-specific commands. This was not an issue in previous versions of the library. What ver...
Open Graph Description: Summary Slash command registration experiences a significant delay (up to 30 seconds or longer) after the bot has fully started when registering guild-specific commands. This was not an issue in pr...
X Description: Summary Slash command registration experiences a significant delay (up to 30 seconds or longer) after the bot has fully started when registering guild-specific commands. This was not an issue in pr...
Opengraph URL: https://github.com/DSharpPlus/DSharpPlus/issues/2270
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Significant Delay in Slash Command Registration for Guild-Specific Commands","articleBody":"### Summary\n\nSlash command registration experiences a significant delay (up to 30 seconds or longer) after the bot has fully started when registering guild-specific commands. This was not an issue in previous versions of the library.\n\n### What version of the library are you using?\n\nv5.0.0-nightly (make sure you are using the latest nightly!)\n\n### What .NET version are you using? Make sure to use the latest patch release for your major version.\n\n.NET 9.0\n\n### Operating System\n\nWindows 11\n\n### Reproduction Steps\n\n1. Configure DSharpPlus with the `CommandsExtension`.\n2. Register slash commands as guild-specific. This can be done by:\n * Using `DebugGuildId` in `CommandsConfiguration`.\n\n3. Start the bot.\n4. Observe the delay between the bot reporting that it has started and the slash commands becoming available in the specified guild(s). This delay can be up to 30 seconds or longer.\n\n### Trace Logs\n\n```log\n\n```\n\n### Exceptions or other error messages\n\n```txt\n\n```\n\n### Anything else you'd like to share\n\n### Code Sample (Registering guild-specific commands using `DebugGuildId`)\n\n```csharp\nservices.AddCommandsExtension((_, extension) =\u003e\n{\n extension.AddProcessors(new SlashCommandProcessor());\n extension.AddCommands(CommandRegistrationHelper.GetCommandTypes(Assembly.GetExecutingAssembly()));\n}, new CommandsConfiguration\n{\n#if DEVELOPMENT\n DebugGuildId = {ID}\n#endif\n});\n```","author":{"url":"https://github.com/InvixGG","@type":"Person","name":"InvixGG"},"datePublished":"2025-03-22T14:25:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2270/DSharpPlus/issues/2270"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9b54a481-42b0-9c0b-478f-fb01e1d697ae |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 96DA:2AAE9:A5DAB:E37C8:698DD4A4 |
| html-safe-nonce | ce79730887b68a65da3c06953b4829f5570f090130851ad233dfcaa3870cb6fe |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NkRBOjJBQUU5OkE1REFCOkUzN0M4OjY5OERENEE0IiwidmlzaXRvcl9pZCI6IjU0MjI0OTQ1NzIwMTY5NDgzODgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 05495f1c20d5f0c4222c45d04740362e4d9a9501780a171a9b1f79ac36086690 |
| hovercard-subject-tag | issue:2940411791 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/DSharpPlus/DSharpPlus/2270/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c8a77437c7f2e1de84f733700cbb925227a355e125a85218a3e8f0cdc59519d8/DSharpPlus/DSharpPlus/issues/2270 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c8a77437c7f2e1de84f733700cbb925227a355e125a85218a3e8f0cdc59519d8/DSharpPlus/DSharpPlus/issues/2270 |
| og:image:alt | Summary Slash command registration experiences a significant delay (up to 30 seconds or longer) after the bot has fully started when registering guild-specific commands. This was not an issue in pr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | InvixGG |
| hostname | github.com |
| expected-hostname | github.com |
| None | d9c5a945db9d79f5476dbe75d3700f24739ef28ab02037163bdeac4050cd4ded |
| turbo-cache-control | no-preview |
| go-import | github.com/DSharpPlus/DSharpPlus git https://github.com/DSharpPlus/DSharpPlus.git |
| octolytics-dimension-user_id | 36208721 |
| octolytics-dimension-user_login | DSharpPlus |
| octolytics-dimension-repository_id | 67243489 |
| octolytics-dimension-repository_nwo | DSharpPlus/DSharpPlus |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 67243489 |
| octolytics-dimension-repository_network_root_nwo | DSharpPlus/DSharpPlus |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1e3d09effb9f6299d5990409f03a0dfa8eca8595 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width