mirror of https://gitlab.com/litecord/litecord.git
Create rules channel
This commit is contained in:
parent
83721d4525
commit
324cf6d4fa
|
|
@ -316,9 +316,9 @@ async def _update_guild(guild_id):
|
|||
guild_id,
|
||||
)
|
||||
|
||||
channel_fields = ["afk_channel_id", "system_channel_id"]
|
||||
channel_fields = ["afk_channel_id", "system_channel_id", "rules_channel_id"]
|
||||
for field in [f for f in channel_fields if f in j]:
|
||||
# setting to null should remove the link between the afk/sys channel
|
||||
# setting to null should remove the link between the afk/sys/rules channel
|
||||
# to the guild.
|
||||
if j[field] is None:
|
||||
await app.db.execute(
|
||||
|
|
|
|||
|
|
@ -201,7 +201,7 @@ class Storage:
|
|||
explicit_content_filter, mfa_level,
|
||||
embed_enabled, embed_channel_id::text,
|
||||
widget_enabled, widget_channel_id::text,
|
||||
system_channel_id::text, features,
|
||||
system_channel_id::text, rules_channel_id::text, features,
|
||||
banner, description
|
||||
FROM guilds
|
||||
WHERE guilds.id = $1
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
ALTER TABLE guilds ADD COLUMN rules_channel_id int
|
||||
Loading…
Reference in New Issue