mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-04-19 16:33:36 +03:00
Use IUser#Mention property instead of wrapping the ID in mention syntax
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
16fdb2db81
commit
9ef9aa1b40
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ public static class Boyfriend {
|
|||
if (now < reminder.RemindAt) continue;
|
||||
|
||||
var channel = guild.GetTextChannel(reminder.ReminderChannel);
|
||||
var toSend = $"{ReplyEmojis.Reminder} <@{mData.Id}> {Utils.Wrap(reminder.ReminderText)}";
|
||||
var toSend = $"{ReplyEmojis.Reminder} {user.Mention} {Utils.Wrap(reminder.ReminderText)}";
|
||||
if (channel is not null)
|
||||
await channel.SendMessageAsync(toSend);
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue