Skip to content

Commit

Permalink
[ThreadOpener] permissions check
Browse files Browse the repository at this point in the history
  • Loading branch information
japandotorg committed Oct 13, 2023
1 parent dce085c commit b80f33c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions threadopener/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ async def on_message(self, message: discord.Message) -> None:
if (
not message.guild.me.guild_permissions.manage_threads
or not message.guild.me.guild_permissions.view_channel
or not message.guild.me.guild_permissions.create_public_threads
):
await self.config.guild(message.guild).toggle.set(False)
log.info(
Expand Down

0 comments on commit b80f33c

Please sign in to comment.