Delete old message

This commit is contained in:
rxdn 2021-07-28 21:23:17 +01:00
parent 71f1f6708b
commit 33429f2a20

View File

@ -101,6 +101,9 @@ func UpdatePanel(ctx *gin.Context) {
ctx.JSON(500, utils.ErrorJson(err))
return
}
// Delete old panel
_ = rest.DeleteMessage(botContext.Token, botContext.RateLimiter, multiPanel.ChannelId, multiPanel.MessageId)
}
// check if we need to update the message