mirror of
				https://gitlab.com/Kwoth/nadekobot.git
				synced 2025-11-04 00:34:26 -05:00 
			
		
		
		
	fix: Blackjack and .pick command responses will no longer reply as the original message will always be deleted
This commit is contained in:
		@@ -50,12 +50,12 @@ public partial class Gambling
 | 
			
		||||
                bj.GameEnded += Bj_GameEnded;
 | 
			
		||||
                bj.Start();
 | 
			
		||||
 | 
			
		||||
                await Response().Confirm(strs.bj_created(ctx.User.ToString())).SendAsync();
 | 
			
		||||
                await Response().NoReply().Confirm(strs.bj_created(ctx.User.ToString())).SendAsync();
 | 
			
		||||
            }
 | 
			
		||||
            else
 | 
			
		||||
            {
 | 
			
		||||
                if (await bj.Join(ctx.User, amount))
 | 
			
		||||
                    await Response().Confirm(strs.bj_joined(ctx.User.ToString())).SendAsync();
 | 
			
		||||
                    await Response().NoReply().Confirm(strs.bj_joined(ctx.User.ToString())).SendAsync();
 | 
			
		||||
                else
 | 
			
		||||
                {
 | 
			
		||||
                    Log.Information("{User} can't join a blackjack game as it's in {BlackjackState} state already",
 | 
			
		||||
 
 | 
			
		||||
@@ -27,7 +27,7 @@ public partial class Gambling
 | 
			
		||||
 | 
			
		||||
            if (picked > 0)
 | 
			
		||||
            {
 | 
			
		||||
                var msg = await Response().Confirm(strs.picked(N(picked))).SendAsync();
 | 
			
		||||
                var msg = await Response().NoReply().Confirm(strs.picked(N(picked))).SendAsync();
 | 
			
		||||
                msg.DeleteAfter(10);
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
@@ -92,7 +92,7 @@ public partial class Gambling
 | 
			
		||||
        {
 | 
			
		||||
            if (--page < 0)
 | 
			
		||||
                return Task.CompletedTask;
 | 
			
		||||
            
 | 
			
		||||
 | 
			
		||||
            var enabledIn = _service.GetAllGeneratingChannels();
 | 
			
		||||
 | 
			
		||||
            return Response()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user