mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 17:28:27 -04:00
Reduce required permissions for deleting quotes
This commit is contained in:
@@ -205,7 +205,7 @@ namespace NadekoBot.Modules.Utility
|
|||||||
[RequireContext(ContextType.Guild)]
|
[RequireContext(ContextType.Guild)]
|
||||||
public async Task QuoteDelete(int id)
|
public async Task QuoteDelete(int id)
|
||||||
{
|
{
|
||||||
var isAdmin = ((IGuildUser)ctx.Message.Author).GuildPermissions.Administrator;
|
var isAdmin = ((IGuildUser)ctx.Message.Author).GuildPermissions.ManageMessages;
|
||||||
|
|
||||||
var success = false;
|
var success = false;
|
||||||
string response;
|
string response;
|
||||||
@@ -233,7 +233,7 @@ namespace NadekoBot.Modules.Utility
|
|||||||
|
|
||||||
[NadekoCommand, Aliases]
|
[NadekoCommand, Aliases]
|
||||||
[RequireContext(ContextType.Guild)]
|
[RequireContext(ContextType.Guild)]
|
||||||
[UserPerm(GuildPerm.Administrator)]
|
[UserPerm(GuildPerm.ManageMessages)]
|
||||||
public async Task DelAllQuotes([Leftover] string keyword)
|
public async Task DelAllQuotes([Leftover] string keyword)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrWhiteSpace(keyword))
|
if (string.IsNullOrWhiteSpace(keyword))
|
||||||
|
Reference in New Issue
Block a user