Skip to content

Commit

Permalink
Ensure prefixes are added
Browse files Browse the repository at this point in the history
  • Loading branch information
No767 committed Jan 23, 2024
1 parent 43c9ac2 commit 8ee3e7a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bot/cogs/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@ async def setup(self, ctx: GuildContext, *, flags: SetupFlags) -> None:
return

query = """
INSERT INTO guild_config (id, category_id, ticket_channel_id, logging_channel_id, logging_broadcast_url, ticket_broadcast_url)
VALUES ($1, $2, $3, $4, $5, $6);
INSERT INTO guild_config (id, category_id, ticket_channel_id, logging_channel_id, logging_broadcast_url, ticket_broadcast_url, prefix)
VALUES ($1, $2, $3, $4, $5, $6, $7);
"""
try:
await self.pool.execute(
Expand All @@ -267,6 +267,7 @@ async def setup(self, ctx: GuildContext, *, flags: SetupFlags) -> None:
logging_channel.id,
lgc_webhook.url,
tc_webhook.url,
[],
)
except asyncpg.UniqueViolationError:
await ticket_channel.delete(reason=delete_reason)
Expand Down

0 comments on commit 8ee3e7a

Please sign in to comment.