mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-04-20 00:43:36 +03:00
CI build error fixes
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
94aba8e17c
commit
8370574f8a
3 changed files with 11 additions and 3 deletions
|
@ -2,6 +2,7 @@ using System.ComponentModel;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using Boyfriend.Data;
|
using Boyfriend.Data;
|
||||||
using Boyfriend.Services;
|
using Boyfriend.Services;
|
||||||
|
using Boyfriend.Services.Update;
|
||||||
using JetBrains.Annotations;
|
using JetBrains.Annotations;
|
||||||
using Remora.Commands.Attributes;
|
using Remora.Commands.Attributes;
|
||||||
using Remora.Commands.Groups;
|
using Remora.Commands.Groups;
|
||||||
|
@ -203,7 +204,7 @@ public class BanCommandGroup : CommandGroup
|
||||||
/// was unbanned and vice-versa.
|
/// was unbanned and vice-versa.
|
||||||
/// </returns>
|
/// </returns>
|
||||||
/// <seealso cref="ExecuteBanAsync" />
|
/// <seealso cref="ExecuteBanAsync" />
|
||||||
/// <seealso cref="GuildUpdateService.TickGuildAsync" />
|
/// <seealso cref="MemberUpdateService.TickMemberDataAsync" />
|
||||||
[Command("unban")]
|
[Command("unban")]
|
||||||
[DiscordDefaultMemberPermissions(DiscordPermission.BanMembers)]
|
[DiscordDefaultMemberPermissions(DiscordPermission.BanMembers)]
|
||||||
[DiscordDefaultDMPermission(false)]
|
[DiscordDefaultDMPermission(false)]
|
||||||
|
|
|
@ -2,6 +2,7 @@ using System.ComponentModel;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using Boyfriend.Data;
|
using Boyfriend.Data;
|
||||||
using Boyfriend.Services;
|
using Boyfriend.Services;
|
||||||
|
using Boyfriend.Services.Update;
|
||||||
using JetBrains.Annotations;
|
using JetBrains.Annotations;
|
||||||
using Remora.Commands.Attributes;
|
using Remora.Commands.Attributes;
|
||||||
using Remora.Commands.Groups;
|
using Remora.Commands.Groups;
|
||||||
|
@ -166,7 +167,7 @@ public class MuteCommandGroup : CommandGroup
|
||||||
/// was unmuted and vice-versa.
|
/// was unmuted and vice-versa.
|
||||||
/// </returns>
|
/// </returns>
|
||||||
/// <seealso cref="ExecuteMute" />
|
/// <seealso cref="ExecuteMute" />
|
||||||
/// <seealso cref="GuildUpdateService.TickGuildAsync" />
|
/// <seealso cref="MemberUpdateService.TickMemberDataAsync" />
|
||||||
[Command("unmute", "размут")]
|
[Command("unmute", "размут")]
|
||||||
[DiscordDefaultMemberPermissions(DiscordPermission.ModerateMembers)]
|
[DiscordDefaultMemberPermissions(DiscordPermission.ModerateMembers)]
|
||||||
[DiscordDefaultDMPermission(false)]
|
[DiscordDefaultDMPermission(false)]
|
||||||
|
|
|
@ -114,7 +114,13 @@ public sealed class ScheduledEventUpdateService : BackgroundService
|
||||||
return Result.FromSuccess();
|
return Result.FromSuccess();
|
||||||
}
|
}
|
||||||
|
|
||||||
return await SendEarlyEventNotificationAsync(scheduledEvent, data, ct);
|
var sendResult = await SendEarlyEventNotificationAsync(scheduledEvent, data, ct);
|
||||||
|
if (sendResult.IsSuccess)
|
||||||
|
{
|
||||||
|
eventData.EarlyNotificationSent = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return sendResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task<Result> AutoStartEventAsync(
|
private async Task<Result> AutoStartEventAsync(
|
||||||
|
|
Loading…
Add table
Reference in a new issue