fix: lock commands to Linux General only
parent
26e41c5e29
commit
a71795424f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue