mirror of
				https://gitlab.com/Kwoth/nadekobot.git
				synced 2025-11-04 00:34:26 -05:00 
			
		
		
		
	DM send by the bot when being the target of a .give command will now once again contain amount.
This commit is contained in:
		@@ -363,7 +363,7 @@ public partial class Gambling : GamblingModule<GamblingService>
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (!await _cs.TransferAsync(_eb, ctx.User, receiver, amount, msg))
 | 
			
		||||
        if (!await _cs.TransferAsync(_eb, ctx.User, receiver, amount, msg, N(amount)))
 | 
			
		||||
        {
 | 
			
		||||
            await ReplyErrorLocalizedAsync(strs.not_enough(CurrencySign));
 | 
			
		||||
            return;
 | 
			
		||||
 
 | 
			
		||||
@@ -17,7 +17,8 @@ public static class CurrencyServiceExtensions
 | 
			
		||||
        IUser from,
 | 
			
		||||
        IUser to,
 | 
			
		||||
        long amount,
 | 
			
		||||
        string? note)
 | 
			
		||||
        string? note,
 | 
			
		||||
        string formattedAmount)
 | 
			
		||||
    {
 | 
			
		||||
        var fromWallet = await cs.GetWalletAsync(from.Id);
 | 
			
		||||
        var toWallet = await cs.GetWalletAsync(to.Id);
 | 
			
		||||
@@ -28,8 +29,8 @@ public static class CurrencyServiceExtensions
 | 
			
		||||
        {
 | 
			
		||||
            await to.SendConfirmAsync(ebs,
 | 
			
		||||
                string.IsNullOrWhiteSpace(note)
 | 
			
		||||
                    ? $"Gift from {from}"
 | 
			
		||||
                    : $"Gift from {from}: {note}");
 | 
			
		||||
                    ? $"Received {formattedAmount} from {from} "
 | 
			
		||||
                    : $"Received {formattedAmount} from {from}: {note}");
 | 
			
		||||
            return true;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user