fix: don't try to register messages to redis if the redis connection isn't configured
This commit is contained in:
		@@ -20,6 +20,8 @@ public class CommandMessageService
 | 
			
		||||
 | 
			
		||||
    public async Task RegisterMessage(ulong messageId, ulong channelId, ulong authorId)
 | 
			
		||||
    {
 | 
			
		||||
        if (_redis.Connection == null) return;
 | 
			
		||||
 | 
			
		||||
        _logger.Debug(
 | 
			
		||||
            "Registering command response {MessageId} from author {AuthorId} in {ChannelId}",
 | 
			
		||||
            messageId, authorId, channelId
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user