Title: Events are received before command setup is finished · Issue #2448 · DSharpPlus/DSharpPlus · GitHub
Open Graph Title: Events are received before command setup is finished · Issue #2448 · DSharpPlus/DSharpPlus
X Title: Events are received before command setup is finished · Issue #2448 · DSharpPlus/DSharpPlus
Description: Summary We receive events before the processors are set up causing an exception What version of the library are you using? v5.0.0-nightly-02594 What .NET version are you using? Make sure to use the latest patch release for your major ver...
Open Graph Description: Summary We receive events before the processors are set up causing an exception What version of the library are you using? v5.0.0-nightly-02594 What .NET version are you using? Make sure to use the...
X Description: Summary We receive events before the processors are set up causing an exception What version of the library are you using? v5.0.0-nightly-02594 What .NET version are you using? Make sure to use the...
Opengraph URL: https://github.com/DSharpPlus/DSharpPlus/issues/2448
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Events are received before command setup is finished","articleBody":"### Summary\n\nWe receive events before the processors are set up causing an exception\n\n### What version of the library are you using?\n\nv5.0.0-nightly-02594\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\nDebian 13\n\n### Reproduction Steps\n\nAdd slashcommand processor\nAdd textcommand processor\nAdd a few slash commands to setup\nrun the program\nlook at funny errors during setup\n\n### Trace Logs\n\n```log\n\n```\n\n### Exceptions or other error messages\n\n```txt\n[2026-06-30 15:41:25 +00:00] [DSharpPlus.IClientErrorHandler] [Error] Event handler exception for event DSharpPlus.EventArgs.MessageCreatedEventArgs thrown from System.Threading.Tasks.Task lambda_method4(System.Runtime.CompilerServices.Closure, DSharpPlus.DiscordClient, DSharpPlus.EventArgs.MessageCreatedEventArgs, System.IServiceProvider) (defined in (null)).\nSystem.InvalidOperationException: TextCommandProcessor has not been configured.\n at DSharpPlus.Commands.Processors.TextCommands.TextCommandProcessor.ExecuteTextCommandAsync(DiscordClient client, MessageCreatedEventArgs eventArgs)\n at DSharpPlus.Commands.ProcessorInvokingHandlers.HandleEventAsync(DiscordClient sender, MessageCreatedEventArgs eventArgs)\n at DSharpPlus.Clients.DefaultEventDispatcher.\u003c>c__DisplayClass11_1`1.\u003c\u003cDispatchAsync>b__2>d.MoveNext() : TextCommandProcessor has not been configured.\n at DSharpPlus.Commands.Processors.TextCommands.TextCommandProcessor.ExecuteTextCommandAsync(DiscordClient client, MessageCreatedEventArgs eventArgs)\n at DSharpPlus.Commands.ProcessorInvokingHandlers.HandleEventAsync(DiscordClient sender, MessageCreatedEventArgs eventArgs)\n at DSharpPlus.Clients.DefaultEventDispatcher.\u003c>c__DisplayClass11_1`1.\u003c\u003cDispatchAsync>b__2>d.MoveNext()\n```\n\n### Anything else you'd like to share\n\nSupposedly caused by a race condition","author":{"url":"https://github.com/Bam40002","@type":"Person","name":"Bam40002"},"datePublished":"2026-06-30T16:02:24Z","url":"https://github.com/DSharpPlus/DSharpPlus/issues/2448"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:7544335b-8e53-59e6-c6cf-6ae5f76446c7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BDF2:3DE7C3:2B9F927:3841341:6B040962 |
| html-safe-nonce | 3e6648a40637a9f6ebba4cbc95c1e9fe379f561ce875db4896cba51094bbdbd7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCREYyOjNERTdDMzoyQjlGOTI3OjM4NDEzNDE6NkIwNDA5NjIiLCJ2aXNpdG9yX2lkIjoiNzMxNDA0ODIwOTg2MzgzODA1MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 44a8edf9a664789253a1d535f63a907b9f5573fe3b79b6a9d32d075f617a4c87 |
| hovercard-subject-tag | issue:4778416853 |
| 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/2448/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d842aceacb8581e6384b4a69aec61a012c0976e578943816807a0dc1b6c9de23/DSharpPlus/DSharpPlus/issues/2448 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d842aceacb8581e6384b4a69aec61a012c0976e578943816807a0dc1b6c9de23/DSharpPlus/DSharpPlus/issues/2448 |
| og:image:alt | Summary We receive events before the processors are set up causing an exception What version of the library are you using? v5.0.0-nightly-02594 What .NET version are you using? Make sure to use the... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Bam40002 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width