mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 01:38:27 -04:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
7ba345b0fc | ||
|
5d775c9589 | ||
|
2bd8ead10c |
@@ -2,6 +2,14 @@
|
|||||||
|
|
||||||
Mostly based on [keepachangelog](https://keepachangelog.com/en/1.0.0/) except date format. a-c-f-r-o
|
Mostly based on [keepachangelog](https://keepachangelog.com/en/1.0.0/) except date format. a-c-f-r-o
|
||||||
|
|
||||||
|
|
||||||
|
## [5.3.3] - 15.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
|
||||||
|
@@ -8,7 +8,7 @@ public partial class Administration
|
|||||||
public class NotifyCommands : NadekoModule<NotifyService>
|
public class NotifyCommands : NadekoModule<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);
|
||||||
|
@@ -75,7 +75,7 @@ public sealed class NotifyService : IReadyExecutor, INotifySubscriber, INService
|
|||||||
data);
|
data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task OnEvent<T>(T model)
|
private async Task OnEvent<T>(T model)
|
||||||
where T : struct, INotifyModel
|
where T : struct, INotifyModel
|
||||||
{
|
{
|
||||||
@@ -146,6 +146,7 @@ public sealed class NotifyService : IReadyExecutor, INotifySubscriber, INService
|
|||||||
|
|
||||||
await _mss.Response(channel)
|
await _mss.Response(channel)
|
||||||
.Text(st)
|
.Text(st)
|
||||||
|
.Sanitize(false)
|
||||||
.SendAsync();
|
.SendAsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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>
|
||||||
|
Reference in New Issue
Block a user