Changed send_followup to respond

Rene Teigen 2 years ago
parent 39c193adfa
commit e31df356a9

@ -11,7 +11,7 @@ class Check:
async def inner(ctx: discord.ApplicationContext): async def inner(ctx: discord.ApplicationContext):
if not any(role.name in ALLOWED_ROLES for role in ctx.user.roles): if not any(role.name in ALLOWED_ROLES for role in ctx.user.roles):
await ctx.defer(ephemeral=True) await ctx.defer(ephemeral=True)
await ctx.send_followup( await ctx.respond(
"You don't have permission to use this.", "You don't have permission to use this.",
ephemeral=True, ephemeral=True,
delete_after=10, delete_after=10,

Loading…
Cancel
Save