fix verify channel perms to disable threads
This commit is contained in:
1 parent
79e58f942e
commit
6766066e60
1 file changed
+5
-2
+5
-2
@@ -422,7 +422,10 @@ class Verification(commands.Cog):
|
|||||||
guild.default_role, reason=reason,
|
guild.default_role, reason=reason,
|
||||||
overwrite=discord.PermissionOverwrite(
|
overwrite=discord.PermissionOverwrite(
|
||||||
view_channel=True, read_message_history=True,
|
view_channel=True, read_message_history=True,
|
||||||
add_reactions=True, send_messages=False))
|
add_reactions=True, send_messages=False,
|
||||||
|
create_public_threads=False,
|
||||||
|
create_private_threads=False,
|
||||||
|
send_messages_in_threads=False))
|
||||||
|
|
||||||
step = f"setting permissions for Verified in {channel.mention}"
|
step = f"setting permissions for Verified in {channel.mention}"
|
||||||
await channel.set_permissions(
|
await channel.set_permissions(
|
||||||
@@ -452,7 +455,7 @@ class Verification(commands.Cog):
|
|||||||
"Next: `/verify panel`, `/verify grandfather`, then `/verify enable`.",
|
"Next: `/verify panel`, `/verify grandfather`, then `/verify enable`.",
|
||||||
ephemeral=True)
|
ephemeral=True)
|
||||||
|
|
||||||
@group.command(name="panel",
|
@group.command(name="panel",
|
||||||
description="Post the rules and Continue button in the verify channel")
|
description="Post the rules and Continue button in the verify channel")
|
||||||
@guildconf.admin_only()
|
@guildconf.admin_only()
|
||||||
async def panel(self, interaction: discord.Interaction):
|
async def panel(self, interaction: discord.Interaction):
|
||||||
|
|||||||
Reference in new issue
Block a user