Skip to content

Commit

Permalink
Improve a test project
Browse files Browse the repository at this point in the history
  • Loading branch information
KubaZ2 committed Nov 18, 2024
1 parent 6697f65 commit 773fe63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/NetCord.Test.Hosting/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
.AddSlashCommand("exception-button", "Exception button!", () => new InteractionMessageProperties().AddComponents(new ActionRowProperties([new ButtonProperties("exception", "Exception!", ButtonStyle.Danger)])))
.AddUserCommand("ping", () => "Pong!")
.AddMessageCommand("Content", (RestMessage message) => message.Content)
.AddUserCommand("Name", (User user) => user.Username)
.AddUserCommand("Name", (GatewayClient client, ApplicationCommandContext context, User user) => user.Username)
.AddMessageCommand("ping", () => "Pong!")
.AddComponentInteraction<ButtonInteractionContext>("button", () => "Button!")
.AddComponentInteraction<ButtonInteractionContext>("exception", (Action<IServiceProvider, ButtonInteractionContext>)((IServiceProvider provider, ButtonInteractionContext context) => throw new("Exception!")))
Expand Down

0 comments on commit 773fe63

Please sign in to comment.