Skip to content

Commit

Permalink
say: fix bug in DM
Browse files Browse the repository at this point in the history
  • Loading branch information
laggron42 committed Dec 15, 2023
1 parent dcaa8be commit 06cec67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions say/say.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__(self, bot: "Red"):
self.interaction = []

__author__ = ["retke (El Laggron)"]
__version__ = "2.0.0"
__version__ = "2.0.1"

async def say(
self,
Expand All @@ -55,10 +55,10 @@ async def say(
return

author = ctx.author
guild = ctx.guild
guild = channel.guild

# checking perms
if not channel.permissions_for(guild.me).send_messages:
if guild and not channel.permissions_for(guild.me).send_messages:
if channel != ctx.channel:
await ctx.send(
_("I am not allowed to send messages in ") + channel.mention,
Expand Down

0 comments on commit 06cec67

Please sign in to comment.