Skip to content

Commit

Permalink
Fix an AttributeError.
Browse files Browse the repository at this point in the history
  • Loading branch information
ltzmax committed Nov 20, 2023
1 parent a2a2701 commit e880e64
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion suggestion/suggestion.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ async def on_message_without_command(self, message: discord.Message):
Send a suggestion to the suggestion channel without using a command.
You can just type your suggestion in the suggestion channel and the bot will delete your message and build the embed with your message.
"""
# if its enbaled or not
if message.guild is None:
return
# check if its enabled or not
if not await self.config.guild(message.guild).allouw_without_command():
return
# Ignore bots
Expand Down

0 comments on commit e880e64

Please sign in to comment.