DM commands have guild as None, causing the on_interaction and on_command listeners to raise errors since the listeners are trying to access shard_id from a NoneType guild.
This pull request adds NoneType checks to shard_id in both listeners, shard_id will be None if guild is None.
DM commands have
guild
asNone
, causing theon_interaction
andon_command
listeners to raise errors since the listeners are trying to accessshard_id
from aNoneType
guild.This pull request adds NoneType checks to
shard_id
in both listeners,shard_id
will beNone
ifguild
isNone
.