diff --git a/src/main.py b/src/main.py index 9d289ff..0c621c1 100644 --- a/src/main.py +++ b/src/main.py @@ -36,7 +36,7 @@ async def on_ready(): print('------') -@client.tree.command(name="change_hostname") +@client.tree.command(guild=discord.Object(id=813127962881818624), name="change_hostname") @app_commands.describe(distro='Assign yourself a role') async def distro(interaction: discord.Interaction, distro: typing.Literal['LFS', 'Kiss', 'Gentoo', 'Void', 'NixOS', 'Alpine', 'Arch', 'Arch-based', 'Red Hat', 'Bedrock', 'SuSE Based', 'OpenSuSE', 'Debian', 'Debian based', 'Solus', 'Fedora', 'Ubuntu', 'Ubuntu Based', 'BSD', 'MacOS', 'Windows']): @@ -170,7 +170,7 @@ async def distro(interaction: discord.Interaction, distro: typing.Literal['LFS', # This context menu command only works on messages -@client.tree.context_menu(name='Report to Moderators') +@client.tree.context_menu(guild=discord.Object(id=813127962881818624), name='Report to Moderators') async def report_message(interaction: discord.Interaction, message: discord.Message): await interaction.response.send_message( f'Thanks for reporting this message by {message.author.mention} to our moderators.', ephemeral=True