updated changelog, updated version

.notify commands are no longer owner only, they now require Admin permissions
.notify messages can now mention anyone
This commit is contained in:
Toastie 2024-12-16 17:47:04 +13:00
parent 29822cd0cb
commit 5d4e730f35
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4
4 changed files with 13 additions and 5 deletions

View file

@ -2,6 +2,13 @@
Mostly based on [keepachangelog](https://keepachangelog.com/en/1.1.0/) except date format. a-c-f-r-o 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 ## [5.3.2] - 14.12.2024
## Fixed ## Fixed

View file

@ -4,7 +4,7 @@
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<ImplicitUsings>true</ImplicitUsings> <ImplicitUsings>true</ImplicitUsings>
<SatelliteResourceLanguages>en</SatelliteResourceLanguages> <SatelliteResourceLanguages>en</SatelliteResourceLanguages>
<Version>5.3.2</Version> <Version>5.3.3</Version>
<!-- Output/build --> <!-- Output/build -->
<RunWorkingDirectory>$(MSBuildProjectDirectory)</RunWorkingDirectory> <RunWorkingDirectory>$(MSBuildProjectDirectory)</RunWorkingDirectory>

View file

@ -8,7 +8,7 @@ public partial class Administration
public class NotifyCommands : EllieModule<NotifyService> public class NotifyCommands : EllieModule<NotifyService>
{ {
[Cmd] [Cmd]
[OwnerOnly] [UserPerm(GuildPerm.Administrator)]
public async Task Notify() public async Task Notify()
{ {
await Response() await Response()
@ -42,7 +42,7 @@ public partial class Administration
}; };
[Cmd] [Cmd]
[OwnerOnly] [UserPerm(GuildPerm.Administrator)]
public async Task Notify(NotifyType nType, [Leftover] string? message = null) public async Task Notify(NotifyType nType, [Leftover] string? message = null)
{ {
if (string.IsNullOrWhiteSpace(message)) if (string.IsNullOrWhiteSpace(message))
@ -76,7 +76,7 @@ public partial class Administration
} }
[Cmd] [Cmd]
[OwnerOnly] [UserPerm(GuildPerm.Administrator)]
public async Task NotifyList(int page = 1) public async Task NotifyList(int page = 1)
{ {
if (--page < 0) if (--page < 0)
@ -104,7 +104,7 @@ public partial class Administration
} }
[Cmd] [Cmd]
[OwnerOnly] [UserPerm(GuildPerm.Administrator)]
public async Task NotifyClear(NotifyType nType) public async Task NotifyClear(NotifyType nType)
{ {
await _service.DisableAsync(ctx.Guild.Id, nType); await _service.DisableAsync(ctx.Guild.Id, nType);

View file

@ -146,6 +146,7 @@ public sealed class NotifyService : IReadyExecutor, INotifySubscriber, IEService
await _mss.Response(channel) await _mss.Response(channel)
.Text(st) .Text(st)
.Sanitize(false)
.SendAsync(); .SendAsync();
} }