diff --git a/src/NadekoBot/Modules/Administration/Notify/NotifyCommands.cs b/src/NadekoBot/Modules/Administration/Notify/NotifyCommands.cs index 06acd24ff..ed389b282 100644 --- a/src/NadekoBot/Modules/Administration/Notify/NotifyCommands.cs +++ b/src/NadekoBot/Modules/Administration/Notify/NotifyCommands.cs @@ -8,7 +8,7 @@ public partial class Administration public class NotifyCommands : NadekoModule { [Cmd] - [OwnerOnly] + [UserPerm(GuildPerm.Administrator)] public async Task Notify() { await Response() @@ -42,7 +42,7 @@ public partial class Administration }; [Cmd] - [OwnerOnly] + [UserPerm(GuildPerm.Administrator)] public async Task Notify(NotifyType nType, [Leftover] string? message = null) { if (string.IsNullOrWhiteSpace(message)) @@ -76,7 +76,7 @@ public partial class Administration } [Cmd] - [OwnerOnly] + [UserPerm(GuildPerm.Administrator)] public async Task NotifyList(int page = 1) { if (--page < 0) @@ -104,7 +104,7 @@ public partial class Administration } [Cmd] - [OwnerOnly] + [UserPerm(GuildPerm.Administrator)] public async Task NotifyClear(NotifyType nType) { await _service.DisableAsync(ctx.Guild.Id, nType); diff --git a/src/NadekoBot/Modules/Administration/Notify/NotifyService.cs b/src/NadekoBot/Modules/Administration/Notify/NotifyService.cs index 1ded32058..20390842f 100644 --- a/src/NadekoBot/Modules/Administration/Notify/NotifyService.cs +++ b/src/NadekoBot/Modules/Administration/Notify/NotifyService.cs @@ -75,7 +75,7 @@ public sealed class NotifyService : IReadyExecutor, INotifySubscriber, INService data); } } - + private async Task OnEvent(T model) where T : struct, INotifyModel { @@ -146,6 +146,7 @@ public sealed class NotifyService : IReadyExecutor, INotifySubscriber, INService await _mss.Response(channel) .Text(st) + .Sanitize(false) .SendAsync(); }