GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Events are received before command setup is finished · Issue #2448 · DSharpPlus/DSharpPlus

Events are received before command setup is finished #2448

New issue
Copy link
New issue
Copy link
Open
Bug
Open
Events are received before command setup is finished#2448
Bug
Copy link
Labels
commandsFor issues related to DSharpPlus.CommandsFor issues related to DSharpPlus.Commands
Milestone
v5.0

Description

@Bam40002
Bam40002
opened on Jun 30, 2026
Issue body actions

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 version.

.NET 9.0

Operating System

Debian 13

Reproduction Steps

Add slashcommand processor
Add textcommand processor
Add a few slash commands to setup
run the program
look at funny errors during setup

Trace Logs


Exceptions or other error messages

[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)).
System.InvalidOperationException: TextCommandProcessor has not been configured.
   at DSharpPlus.Commands.Processors.TextCommands.TextCommandProcessor.ExecuteTextCommandAsync(DiscordClient client, MessageCreatedEventArgs eventArgs)
   at DSharpPlus.Commands.ProcessorInvokingHandlers.HandleEventAsync(DiscordClient sender, MessageCreatedEventArgs eventArgs)
   at DSharpPlus.Clients.DefaultEventDispatcher.<>c__DisplayClass11_1`1.<<DispatchAsync>b__2>d.MoveNext() : TextCommandProcessor has not been configured.
   at DSharpPlus.Commands.Processors.TextCommands.TextCommandProcessor.ExecuteTextCommandAsync(DiscordClient client, MessageCreatedEventArgs eventArgs)
   at DSharpPlus.Commands.ProcessorInvokingHandlers.HandleEventAsync(DiscordClient sender, MessageCreatedEventArgs eventArgs)
   at DSharpPlus.Clients.DefaultEventDispatcher.<>c__DisplayClass11_1`1.<<DispatchAsync>b__2>d.MoveNext()

Anything else you'd like to share

Supposedly caused by a race condition

Activity

  1. Bam40002
    changed the title [-]Events are recieved before command setup is finished[/-] [+]Events are received before command setup is finished[/+] on Jun 30, 2026
  2. akiraveliara
    added the
    Bug
    issue type on Jun 30, 2026
  3. akiraveliara
    added this to the v5.0 milestone on Jun 30, 2026
  4. akiraveliara
    added
    commandsFor issues related to DSharpPlus.CommandsFor issues related to DSharpPlus.Commands
    on Jun 30, 2026
  5. akiraveliara
    set
    Effort
    to
    High
    on Jul 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    commandsFor issues related to DSharpPlus.CommandsFor issues related to DSharpPlus.Commands

    Type

    Bug

    Fields

    Effort

    High

    Projects

    No projects

      Milestone

      • v5.0No due date

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.