all bot messages are wisible only for command sender, fix permission error

This commit is contained in:
2022-07-02 09:24:20 +03:00
parent 3456faed4e
commit bde0ff1f66
2 changed files with 22 additions and 6 deletions

View File

@@ -312,7 +312,7 @@ async def slash_set_prefix(ctx, prefix: str):
@slash_set_prefix.error
@command_set_prefix.error
async def set_prefix_error(ctx):
async def set_prefix_error(ctx, prefix):
await ctx.reply('You don`t have permissions', ephemeral=True)
@@ -364,7 +364,7 @@ async def info(ctx, user=None):
@commands.has_permissions(administrator=True)
async def set_trigger_role(ctx, role):
await Commands.write_json(ctx.guild.id, "tigger_role", role.id)
await ctx.send(f"Role to trigger set to : `{role.name}`")
await ctx.send(f"Role to trigger set to : `{role.name}`", ephemeral=True)
@inter_client.slash_command(
@@ -377,7 +377,7 @@ async def set_trigger_role(ctx, role):
@commands.has_permissions(administrator=True)
async def set_bot_role(ctx, role):
await Commands.write_json(ctx.guild.id, "bot_role", role.id)
await ctx.send(f"Setted up bot role to: `{role.name}`")
await ctx.send(f"Setted up bot role to: `{role.name}`", ephemeral=True)
@inter_client.slash_command(
@@ -421,7 +421,7 @@ async def slash_cogs(ctx, what_do, cogs=None):
@commands.has_permissions(administrator=True)
async def set_guest_role(ctx, role):
await Commands.write_json(ctx.guild.id, "guest_role", role.id)
await ctx.send(f"Setted up bot role to: `{role.name}`")
await ctx.send(f"Setted up bot role to: `{role.name}`", ephemeral=True)
bot.run('OTQ3OTUzOTAxNzgzNjIxNjYy.GTXbMv.KrztaTO7-ivsPEAVjsyikSQ-GP-ANwULmDraig')