mirror of https://github.com/stijndcl/didier
Make slash error message ephemeral
parent
4782d16177
commit
90d0687513
|
|
@ -33,7 +33,7 @@ class FootballSlash(commands.Cog):
|
||||||
@_jpl_group.sub_command(name="update", description="Update de code voor deze competitie (owner-only)")
|
@_jpl_group.sub_command(name="update", description="Update de code voor deze competitie (owner-only)")
|
||||||
async def _jpl_update_slash(self, interaction: SlashInteraction):
|
async def _jpl_update_slash(self, interaction: SlashInteraction):
|
||||||
if not await checks.isMe(interaction):
|
if not await checks.isMe(interaction):
|
||||||
return await interaction.reply(f"Je hebt geen toegang tot dit commando.")
|
return await interaction.reply(f"Je hebt geen toegang tot dit commando.", ephemeral=True)
|
||||||
|
|
||||||
code = get_jpl_code()
|
code = get_jpl_code()
|
||||||
config.config("jpl", code)
|
config.config("jpl", code)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue