Fixed minor issues

This commit is contained in:
2024-06-23 12:12:34 +02:00
parent f67375ff4f
commit 4f610fc55c
3 changed files with 5 additions and 5 deletions

View File

@@ -112,7 +112,7 @@ class Admin(commands.Cog):
amount: int,
user: User,
):
if ctx.user.id in self.client.config["bot"]["owners"]:
if ctx.user.id in self.client.owner_ids:
logging.info(
"User %s removed %s message(s) in %s",
ctx.user.id,
@@ -163,7 +163,7 @@ class Admin(commands.Cog):
)
async def reboot_cmd(self, ctx: ApplicationContext):
await ctx.defer(ephemeral=True)
if ctx.user.id in self.client.config["bot"]["owners"]:
if ctx.user.id in self.client.owner_ids:
logging.info("Calling shutdown initiated by %s", guild_name(ctx.user))
await ctx.respond(
embed=Embed(