discord: update profile list when changes occur

This commit is contained in:
Harvey Tindall
2023-10-11 12:00:38 +01:00
parent 2fb2f3ee74
commit 2f3d5e4e3a
2 changed files with 34 additions and 11 deletions

View File

@@ -104,6 +104,10 @@ func (app *appContext) CreateProfile(gc *gin.Context) {
}
}
app.storage.SetProfileKey(req.Name, profile)
// Refresh discord bots, profile list
if discordEnabled {
app.discord.UpdateCommands()
}
respondBool(200, true, gc)
}