diff --git a/CHANGELOG.md b/CHANGELOG.md index c101366..2858e63 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ Mostly based on [keepachangelog](https://keepachangelog.com/en/1.1.0/) except date format. a-c-f-r-o +## [5.3.3] - 16.12.2024 + +## Fixed + +- `.notify` commands are no longer owner only, they now require Admin permissions +- `.notify` messages can now mention anyone + ## [5.3.2] - 14.12.2024 ## Fixed diff --git a/src/EllieBot/EllieBot.csproj b/src/EllieBot/EllieBot.csproj index 4d06b71..d719599 100644 --- a/src/EllieBot/EllieBot.csproj +++ b/src/EllieBot/EllieBot.csproj @@ -4,7 +4,7 @@ enable true en - 5.3.2 + 5.3.3 $(MSBuildProjectDirectory) diff --git a/src/EllieBot/Modules/Administration/Notify/NotifyCommands.cs b/src/EllieBot/Modules/Administration/Notify/NotifyCommands.cs index 479bdff..3b75f24 100644 --- a/src/EllieBot/Modules/Administration/Notify/NotifyCommands.cs +++ b/src/EllieBot/Modules/Administration/Notify/NotifyCommands.cs @@ -8,7 +8,7 @@ public partial class Administration public class NotifyCommands : EllieModule { [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/EllieBot/Modules/Administration/Notify/NotifyService.cs b/src/EllieBot/Modules/Administration/Notify/NotifyService.cs index 3d2fadb..fe81104 100644 --- a/src/EllieBot/Modules/Administration/Notify/NotifyService.cs +++ b/src/EllieBot/Modules/Administration/Notify/NotifyService.cs @@ -146,6 +146,7 @@ public sealed class NotifyService : IReadyExecutor, INotifySubscriber, IEService await _mss.Response(channel) .Text(st) + .Sanitize(false) .SendAsync(); }