Changed send_highscore_message to take guild rather than channel.
This commit is contained in:
@@ -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}>."
|
||||
|
||||
Reference in New Issue
Block a user