Skip to content

Commit

Permalink
text
Browse files Browse the repository at this point in the history
  • Loading branch information
uzairname committed Jan 25, 2024
1 parent 81c4363 commit 0075520
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/modules/matches/match_logging/match_messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ async function syncMatchSummaryMessageInGuild(
const guild = await guild_ranking.guild

const sync_channel_result = await app.bot.utils.syncGuildChannel({
target_channel_id: guild.data.match_results_textchannel_id,
target_channel_id: guild.data.match_results_channel_id,
channelData: async () => matchLogsChannelData(app, guild),
})

Expand All @@ -64,15 +64,15 @@ async function syncMatchSummaryMessageInGuild(
(await matchLogsChannelDescriptionMessageData(app, guild)).postdata,
),
guild.update({
match_results_textchannel_id: sync_channel_result.channel.id,
match_results_channel_id: sync_channel_result.channel.id,
}),
])
}

const existing_message = await match.summaryMessage(guild_ranking.data.guild_id)

const sync_message_result = await app.bot.utils.syncChannelMessage({
target_channel_id: guild.data.match_results_textchannel_id,
target_channel_id: sync_channel_result.channel.id,
target_message_id: existing_message?.message_id,
messageData: await matchSummaryMessageData(app, match),
})
Expand Down

0 comments on commit 0075520

Please sign in to comment.