mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 09:18:27 -04:00
Merge branch 'v5' of https://gitlab.com/kwoth/nadekobot into v5
This commit is contained in:
@@ -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);
|
||||||
|
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user