Skip to content

Commit

Permalink
Merge pull request #68 from Tibo-Ulens/hotfix
Browse files Browse the repository at this point in the history
fix(bot): make bot respond with placeholder when updating verified role
  • Loading branch information
Tibo-Ulens authored Dec 19, 2023
2 parents b9ba8d0 + caec44d commit 802136e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bot/extensions/moderation/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ async def set_admin_role(self, ia: Interaction, role: Role):
@app_commands.guild_only()
@check_user_has_admin_role()
async def set_verified_role(self, ia: Interaction, role: Role):
ia.response.send_message(
"Updating verified role...\nThis message will be updated when everything is completed"
)

guild_config = await ConfigModel.get_or_create(ia.guild)

old_verified_role = None
Expand Down Expand Up @@ -84,7 +88,7 @@ async def set_verified_role(self, ia: Interaction, role: Role):
self.bot.logger.info(
f"set verified role for {util.render_guild(ia.guild)} to {util.render_role(role)}, {len(members)} members updated"
)
await ia.response.send_message(
await ia.edit_original_response(
f"Set the verified role to {util.render_role(role)}, {len(members)} members updated"
)

Expand Down

0 comments on commit 802136e

Please sign in to comment.