user-installable apps

This commit is contained in:
artie 2024-05-25 19:15:32 +02:00
parent 401d89e0fd
commit d64d29104b
2 changed files with 5 additions and 1 deletions

View File

@ -89,6 +89,8 @@ async def get_deepl_languages():
# Translation slash commands # Translation slash commands
@app_commands.context_menu(name="Translate (DeepL)") @app_commands.context_menu(name="Translate (DeepL)")
@app_commands.allowed_installs(guilds=False, users=True)
@app_commands.allowed_contexts(guilds=True, dms=True, private_channels=True)
async def deepl_slash(interaction: discord.Interaction, message: discord.Message): async def deepl_slash(interaction: discord.Interaction, message: discord.Message):
await interaction.response.defer(ephemeral=True) await interaction.response.defer(ephemeral=True)
@ -123,6 +125,8 @@ async def deepl_slash(interaction: discord.Interaction, message: discord.Message
@app_commands.context_menu(name="Translate (Google)") @app_commands.context_menu(name="Translate (Google)")
@app_commands.allowed_installs(guilds=False, users=True)
@app_commands.allowed_contexts(guilds=True, dms=True, private_channels=True)
async def gt_slash(interaction: discord.Interaction, message: discord.Message): async def gt_slash(interaction: discord.Interaction, message: discord.Message):
await interaction.response.defer(ephemeral=True) await interaction.response.defer(ephemeral=True)

View File

@ -1,7 +1,7 @@
wheel wheel
aiocache aiocache
aiosqlite aiosqlite
discord.py discord.py[voice]@git+https://github.com/rapptz/discord.py
PyNaCl>=1.3.0,<1.5 PyNaCl>=1.3.0,<1.5
beautifulsoup4 beautifulsoup4
black black