Changed send_highscore_message to take guild rather than channel.

This commit is contained in:
alwayscompiling
2022-12-08 13:02:39 -05:00
parent a9b889234a
commit f468a028d0
4 changed files with 12 additions and 29 deletions
@@ -63,7 +63,7 @@ class UpdateUsernameVerifyView(nextcord.ui.View):
stmt = select(CategoryGroup).where(CategoryGroup.GroupId.in_(group_ids))
for group in session.scalars(stmt):
await send_highscore_message(session, interaction.guild.get_channel(group.ChannelId), group)
await send_highscore_message(session, interaction.guild, group)
content = interaction.message.content
content += f"\nApproved by <@{interaction.user.id}>."