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