Fixed minor issues
This commit is contained in:
parent
f67375ff4f
commit
4f610fc55c
@ -112,7 +112,7 @@ class Admin(commands.Cog):
|
|||||||
amount: int,
|
amount: int,
|
||||||
user: User,
|
user: User,
|
||||||
):
|
):
|
||||||
if ctx.user.id in self.client.config["bot"]["owners"]:
|
if ctx.user.id in self.client.owner_ids:
|
||||||
logging.info(
|
logging.info(
|
||||||
"User %s removed %s message(s) in %s",
|
"User %s removed %s message(s) in %s",
|
||||||
ctx.user.id,
|
ctx.user.id,
|
||||||
@ -163,7 +163,7 @@ class Admin(commands.Cog):
|
|||||||
)
|
)
|
||||||
async def reboot_cmd(self, ctx: ApplicationContext):
|
async def reboot_cmd(self, ctx: ApplicationContext):
|
||||||
await ctx.defer(ephemeral=True)
|
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))
|
logging.info("Calling shutdown initiated by %s", guild_name(ctx.user))
|
||||||
await ctx.respond(
|
await ctx.respond(
|
||||||
embed=Embed(
|
embed=Embed(
|
||||||
|
@ -35,7 +35,7 @@ class Data(commands.Cog):
|
|||||||
async def data_export_cmd(self, ctx: ApplicationContext, kind: str):
|
async def data_export_cmd(self, ctx: ApplicationContext, kind: str):
|
||||||
await ctx.defer()
|
await ctx.defer()
|
||||||
holo_user = HoloUser(ctx.author)
|
holo_user = HoloUser(ctx.author)
|
||||||
if (ctx.user.id in self.client.config["bot"]["owners"]) or (
|
if (ctx.user.id in self.client.owner_ids) or (
|
||||||
await holo_user.is_council(ctx.author)
|
await holo_user.is_council(ctx.author)
|
||||||
):
|
):
|
||||||
logging.info(
|
logging.info(
|
||||||
@ -101,7 +101,7 @@ class Data(commands.Cog):
|
|||||||
async def data_migrate_cmd(self, ctx: ApplicationContext, kind: str):
|
async def data_migrate_cmd(self, ctx: ApplicationContext, kind: str):
|
||||||
await ctx.defer()
|
await ctx.defer()
|
||||||
holo_user = HoloUser(ctx.author)
|
holo_user = HoloUser(ctx.author)
|
||||||
if (ctx.user.id in self.client.config["bot"]["owners"]) or (
|
if (ctx.user.id in self.client.owner_ids) or (
|
||||||
await holo_user.is_council(ctx.author)
|
await holo_user.is_council(ctx.author)
|
||||||
):
|
):
|
||||||
logging.info(
|
logging.info(
|
||||||
|
Loading…
Reference in New Issue
Block a user