1
0
Fork 1
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:
Octol1ttle 2023-02-14 19:35:44 +05:00 committed by GitHub
parent 16fdb2db81
commit 9ef9aa1b40
Signed by: GitHub
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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