Fix permission lookup, send channel

This commit is contained in:
Zeva Rose 2022-05-03 01:20:50 -06:00
parent 964e646eeb
commit c0cc0f8b9e
2 changed files with 2 additions and 2 deletions

View file

@ -655,7 +655,7 @@ class Jarvis(Client):
if not context.custom_id.startswith("modcase|"):
return await super().on_button(event)
if not context.author.has_permissions(Permissions.MANAGE_USERS):
if not context.author.has_permission(Permissions.MANAGE_USERS):
return
user_key = f"msg|{context.message.id}"

View file

@ -101,7 +101,7 @@ class ModcaseCog(Cog):
Button(style=ButtonStyles.GREEN, emoji="✔️", custom_id="modcase|yes"),
)
]
message = await ctx.send(embed=embed, components=components)
message = await channel.send(embed=embed, components=components)
await self.bot.redis.set(lookup_key, f"{name.lower()}|{action.id}")
await self.bot.redis.set(f"msg|{message.id}", user.id)