Skip to content

Commit

Permalink
Avoid sending command in interaction (#100)
Browse files Browse the repository at this point in the history
Co-authored-by: El Laggron <laggron42@gmail.com>
  • Loading branch information
madebylydia and laggron42 committed Jul 9, 2020
1 parent 8054784 commit 96f6da5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion say/say.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(self, bot):
self.interaction = []

__author__ = ["retke (El Laggron)"]
__version__ = "1.4.13"
__version__ = "1.4.14"

async def say(
self, ctx: commands.Context, channel: Optional[discord.TextChannel], text: str, files: list
Expand Down Expand Up @@ -178,6 +178,8 @@ async def _interact(self, ctx, channel: discord.TextChannel = None):

if message.author == u and isinstance(message.channel, discord.DMChannel):
files = await Tunnel.files_from_attatch(message)
if message.content.startswith(tuple(await self.bot.get_valid_prefixes())):
return
await channel.send(message.content, files=files)
elif (
message.channel != channel
Expand Down

0 comments on commit 96f6da5

Please sign in to comment.