Closed Paillat-dev closed 3 weeks ago
This:
@bot.slash_command()
async def toggle_soundboard_perms_false(ctx: discord.ApplicationContext, channel: discord.VoiceChannel):
await channel.edit(overwrites={ctx.guild.default_role: discord.PermissionOverwrite(use_soundboard=False)})
await ctx.respond(f"Soundboard perms for {channel} have been toggled off.")
@bot.slash_command()
async def toggle_soundboard_perms_true(ctx: discord.ApplicationContext, channel: discord.VoiceChannel):
await channel.edit(overwrites={ctx.guild.default_role: discord.PermissionOverwrite(use_soundboard=True)})
await ctx.respond(f"Soundboard perms for {channel} have been toggled on.")
@bot.slash_command()
async def toggle_soundboard_perms_default(ctx: discord.ApplicationContext, channel: discord.VoiceChannel):
await channel.edit(overwrites={ctx.guild.default_role: discord.PermissionOverwrite(use_soundboard=None)})
await ctx.respond(f"Soundboard perms for {channel} have been reset to default.")
Might as well also add USE_EXTERNAL_SOUNDS
(1 << 45
)
Pls don't merge yet
Summary
Information
Checklist
type: ignore
comments were used, a comment is also left explaining why.