Skip to content

Commit

Permalink
Add application changes to the management channel (#1086)
Browse files Browse the repository at this point in the history
* Add application changes to the management channel

* Formatting

* Add message to channel notice

* Requested to Submitted
  • Loading branch information
ajax146 authored Jul 22, 2024
1 parent 593d05e commit a71a092
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions techsupport_bot/commands/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -812,6 +812,18 @@ async def notify_for_application_change(

await interaction.response.send_message(embed=embed)

config = self.bot.guild_configs[str(interaction.guild.id)]
management_channel = interaction.guild.get_channel(
int(config.extensions.application.management_channel.value)
)

embed.description = confirm_message + f"\n{message}"
embed.set_footer(
text="Change was submitted by: "
+ f"{interaction.user.display_name} ({interaction.user.name})"
)
await management_channel.send(embed=embed)

# DB Stuff

async def search_for_all_applications(
Expand Down

0 comments on commit a71a092

Please sign in to comment.