1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-04-30 19:19:54 +03:00

Fixed my cringe merge

This commit is contained in:
neroduckale 2023-12-05 21:52:39 +05:00
parent 2b42b8d91e
commit 091e51ecc9
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 399E73062E1A3667
3 changed files with 24 additions and 17 deletions

View file

@ -229,7 +229,7 @@ public sealed partial class MemberUpdateService : BackgroundService
string.Format(Messages.Reminder, user.GetTag()), user)
.WithTitle(
string.Format(Messages.DescriptionReminder, Markdown.InlineCode(reminder.Text)))
.WithDescription(string.Format(Messages.DescriptionActionJumpToMessage, $"https://discord.com/channels/{guildId.Value}/{reminder.Channel}/{reminder.MessageId}"))
.WithDescription(string.Format(Messages.DescriptionActionJumpToMessage, $"https://discord.com/channels/{guildId.Value}/{reminder.ChannelId}/{reminder.MessageId}"))
.WithColour(ColorsList.Magenta)
.Build();
@ -239,7 +239,7 @@ public sealed partial class MemberUpdateService : BackgroundService
}
var messageResult = await _channelApi.CreateMessageAsync(
reminder.Channel.ToSnowflake(), Mention.User(user), embeds: new[] { built }, ct: ct);
reminder.ChannelId.ToSnowflake(), Mention.User(user), embeds: new[] { built }, ct: ct);
if (!messageResult.IsSuccess)
{
return Result.FromError(messageResult);