mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
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
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue