Skip to content

What specific order does RegisterCommandsAsync follow in order to load commands? #525

Answered by reduckted
pbanosdev asked this question in Q&A
Discussion options

You must be logged in to vote

RegisterCommandsAsync is just a shortcut for calling InitializeAsync on each command type. If you need the commands to be registered in a specific order, you can register them manually in the desired order.

-await this.RegisterCommandsAsync();
+await Command1.InitializeAsync(this);
+await Command2.InitializeAsync(this);
+await Command3.InitializeAsync(this);
+await Command4.InitializeAsync(this);

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pbanosdev
Comment options

Answer selected by pbanosdev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants