mirror of
				https://gitlab.com/Kwoth/nadekobot.git
				synced 2025-11-04 00:34:26 -05:00 
			
		
		
		
	Avoid awaiting possible null
This commit is contained in:
		@@ -341,10 +341,13 @@ public class XpService : INService, IReadyExecutor, IExecNoCommand
 | 
			
		||||
            }
 | 
			
		||||
            else // channel
 | 
			
		||||
            {
 | 
			
		||||
                await ch?.SendConfirmAsync(_eb,
 | 
			
		||||
                    _strings.GetText(strs.level_up_channel(user.Mention,
 | 
			
		||||
                            Format.Bold(newLevel.ToString())),
 | 
			
		||||
                        guild.Id));
 | 
			
		||||
                if (ch is not null)
 | 
			
		||||
                {
 | 
			
		||||
                    await ch.SendConfirmAsync(_eb,
 | 
			
		||||
                        _strings.GetText(strs.level_up_channel(user.Mention,
 | 
			
		||||
                                Format.Bold(newLevel.ToString())),
 | 
			
		||||
                            guild.Id));
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        else // global level
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user