mirror of
				https://gitlab.com/Kwoth/nadekobot.git
				synced 2025-11-03 16:24:27 -05:00 
			
		
		
		
	Fixed a bug for .quotedeleteauthor causing the executing user to delete own messages
This commit is contained in:
		@@ -270,7 +270,7 @@ public partial class Utility
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
            if (userId == ctx.User.Id || hasManageMessages)
 | 
					            if (userId == ctx.User.Id || hasManageMessages)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                var deleted = await _qs.DeleteAllAuthorQuotesAsync(ctx.Guild.Id, ctx.User.Id);
 | 
					                var deleted = await _qs.DeleteAllAuthorQuotesAsync(ctx.Guild.Id, userId);
 | 
				
			||||||
                await ReplyConfirmLocalizedAsync(strs.quotes_deleted_count(deleted));
 | 
					                await ReplyConfirmLocalizedAsync(strs.quotes_deleted_count(deleted));
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            else
 | 
					            else
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user