mirror of
				https://gitlab.com/Kwoth/nadekobot.git
				synced 2025-11-04 00:34:26 -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)
 | 
			
		||||
            {
 | 
			
		||||
                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));
 | 
			
		||||
            }
 | 
			
		||||
            else
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user