Skip to content

Commit

Permalink
Fix an issue with the command posting command
Browse files Browse the repository at this point in the history
  • Loading branch information
Naamloos committed Nov 12, 2022
1 parent 0c070ba commit 27dcfc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ModCore/Commands/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ public async Task FlipCoinAsync(InteractionContext ctx)
await ctx.EditResponseAsync(new DiscordWebhookBuilder().WithContent($"​🤔 Hmm... Looks like it landed on {(rng == 0? "heads" : "tails")}!"));
}

private static Regex SlashCommandRegex = new Regex(@"</[-_\p{L}\p{N}]{1,32}:([0-9]+)>", RegexOptions.Compiled);
private static Regex SlashCommandRegex = new Regex(@"</[-_\p{L}\p{N} ]{1,32}:([0-9]+)>", RegexOptions.Compiled);
[SlashCommand("command", "Sends a command mention to chat")]
public async Task CommandAsync(InteractionContext ctx,
[Autocomplete(typeof(SlashCommandAutoComplete))]
Expand Down

0 comments on commit 27dcfc9

Please sign in to comment.