-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade DSharpPlus to 5.0.0-nightly-02383
- Loading branch information
1 parent
36e49d3
commit 89c1fda
Showing
50 changed files
with
3,251 additions
and
3,097 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
namespace MechanicalMilkshake.Commands; | ||
|
||
public class CharacterCount : ApplicationCommandModule | ||
public class CharacterCount | ||
{ | ||
[SlashCommand("charactercount", "Counts the characters in a message.")] | ||
public static async Task CharacterCountCommand(InteractionContext ctx, | ||
[Option("message", "The message to count the characters of.")] | ||
[Command("charactercount")] | ||
[Description("Counts the characters in a message.")] | ||
public static async Task CharacterCountCommand(SlashCommandContext ctx, | ||
[Parameter("message"), Description("The message to count the characters of.")] | ||
string chars) | ||
{ | ||
await ctx.CreateResponseAsync(new DiscordInteractionResponseBuilder().WithContent(chars.Length.ToString())); | ||
await ctx.RespondAsync(new DiscordInteractionResponseBuilder().WithContent(chars.Length.ToString())); | ||
} | ||
} |
Oops, something went wrong.