mirror of
				https://gitlab.com/Kwoth/nadekobot.git
				synced 2025-11-04 00:34:26 -05:00 
			
		
		
		
	Clarity on qdel
This commit is contained in:
		@@ -208,7 +208,7 @@ namespace NadekoBot.Modules.Utility
 | 
			
		||||
            [RequireContext(ContextType.Guild)]
 | 
			
		||||
            public async Task QuoteDelete(int id)
 | 
			
		||||
            {
 | 
			
		||||
                var isAdmin = ((IGuildUser)ctx.Message.Author).GuildPermissions.ManageMessages;
 | 
			
		||||
                var hasManageMessages = ((IGuildUser)ctx.Message.Author).GuildPermissions.ManageMessages;
 | 
			
		||||
 | 
			
		||||
                var success = false;
 | 
			
		||||
                string response;
 | 
			
		||||
@@ -216,7 +216,7 @@ namespace NadekoBot.Modules.Utility
 | 
			
		||||
                {
 | 
			
		||||
                    var q = uow.Quotes.GetById(id);
 | 
			
		||||
 | 
			
		||||
                    if ((q?.GuildId != ctx.Guild.Id) || (!isAdmin && q.AuthorId != ctx.Message.Author.Id))
 | 
			
		||||
                    if ((q?.GuildId != ctx.Guild.Id) || (!hasManageMessages && q.AuthorId != ctx.Message.Author.Id))
 | 
			
		||||
                    {
 | 
			
		||||
                        response = GetText(strs.quotes_remove_none);
 | 
			
		||||
                    }
 | 
			
		||||
 
 | 
			
		||||
@@ -611,7 +611,7 @@ quoteid:
 | 
			
		||||
  args:
 | 
			
		||||
    - "123456"
 | 
			
		||||
quotedelete:
 | 
			
		||||
  desc: "Deletes a quote with the specified ID. You have to be either server Administrator or the creator of the quote to delete it."
 | 
			
		||||
  desc: "Deletes a quote with the specified ID. You have to either have the Manage Messages permission or be the creator of the quote to delete it."
 | 
			
		||||
  args:
 | 
			
		||||
    - "123456"
 | 
			
		||||
draw:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user