From 470bb9657f6d33745da709749b0225a600f74081 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Wed, 6 Jul 2022 13:41:27 +0200 Subject: [PATCH] Fixed .timely button for sure this time --- src/NadekoBot/Modules/Gambling/Gambling.cs | 2 +- src/NadekoBot/Modules/Utility/Remind/RemindService.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/NadekoBot/Modules/Gambling/Gambling.cs b/src/NadekoBot/Modules/Gambling/Gambling.cs index aa20e9c38..c42263f7f 100644 --- a/src/NadekoBot/Modules/Gambling/Gambling.cs +++ b/src/NadekoBot/Modules/Gambling/Gambling.cs @@ -138,7 +138,7 @@ public partial class Gambling : GamblingModule var tt = TimestampTag.FromDateTime(when, TimestampTagStyles.Relative); await _remind.AddReminderAsync(ctx.User.Id, - ctx.Channel.Id, + ctx.User.Id, ctx.Guild.Id, true, when, diff --git a/src/NadekoBot/Modules/Utility/Remind/RemindService.cs b/src/NadekoBot/Modules/Utility/Remind/RemindService.cs index 543e1f4bb..0d3d9dcd0 100644 --- a/src/NadekoBot/Modules/Utility/Remind/RemindService.cs +++ b/src/NadekoBot/Modules/Utility/Remind/RemindService.cs @@ -180,7 +180,7 @@ public class RemindService : INService, IReadyExecutor } public async Task AddReminderAsync(ulong userId, - ulong channelId, + ulong targetId, ulong? guildId, bool isPrivate, DateTime time, @@ -189,7 +189,7 @@ public class RemindService : INService, IReadyExecutor var rem = new Reminder { UserId = userId, - ChannelId = channelId, + ChannelId = targetId, ServerId = guildId ?? 0, IsPrivate = isPrivate, When = time,