We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 044dc97 commit d5743baCopy full SHA for d5743ba
Hammer/Commands/Rules/RuleCommand.cs
@@ -68,6 +68,15 @@ public async Task RuleAsync(InteractionContext context,
68
embed.WithTitle(string.IsNullOrWhiteSpace(rule.Brief) ? $"Rule #{rule.Id}" : $"Rule #{rule.Id}. {rule.Brief}");
69
embed.WithDescription(rule.Description);
70
71
- await context.CreateResponseAsync(mentionUser?.Mention, embed).ConfigureAwait(false);
+ var response = new DiscordInteractionResponseBuilder();
72
+ response.AddEmbed(embed);
73
+
74
+ if (mentionUser is not null)
75
+ {
76
+ response.WithContent(mentionUser.Mention);
77
+ response.AddMention(new UserMention(mentionUser.Id));
78
+ }
79
80
+ await context.CreateResponseAsync(response).ConfigureAwait(false);
81
}
82
0 commit comments