mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[Mutes] Don't send dms to bots (#5071)
This commit is contained in:
parent
c4a9d97a4b
commit
820b21dccb
@ -516,6 +516,9 @@ class Mutes(VoiceMutes, commands.Cog, metaclass=CompositeMetaClass):
|
|||||||
reason: Optional[str],
|
reason: Optional[str],
|
||||||
duration=None,
|
duration=None,
|
||||||
):
|
):
|
||||||
|
if user.bot:
|
||||||
|
return
|
||||||
|
|
||||||
if not await self.config.guild(guild).dm():
|
if not await self.config.guild(guild).dm():
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user