Fix permission lookup, send channel
This commit is contained in:
parent
964e646eeb
commit
c0cc0f8b9e
2 changed files with 2 additions and 2 deletions
|
@ -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}"
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue