Remove config param from edit_clan_council_info().

This commit is contained in:
2024-09-03 19:33:13 -04:00
parent 06d81a4604
commit 3a47f58382
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -489,7 +489,7 @@ async def edit_clan_message(
session.commit()
async def edit_clan_council_info(guild: nextcord.Guild, config: DakinySettings) -> None:
async def edit_clan_council_info(guild: nextcord.Guild) -> None:
"""
Gets the winners of the elections and updates the permanent message that states the current council.
@@ -497,7 +497,7 @@ async def edit_clan_council_info(guild: nextcord.Guild, config: DakinySettings)
guild (nextcord.Guild): Guild object that to use to get channel.
config (DakinyConfig): Configs
"""
clan_info_channel: nextcord.TextChannel = await guild.fetch_channel(config.params.clan_info_channel_id)
clan_info_channel: nextcord.TextChannel = await guild.fetch_channel(settings.channel_ids.clan_info)
election_name = get_election_name()
with Session(engine) as session: