Set custom_id
This commit is contained in:
parent
f54167826f
commit
4aa0c773dd
@ -59,6 +59,16 @@ func MultiPanelUpdate(ctx *gin.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for _, panel := range panels {
|
||||||
|
if panel.CustomId == "" {
|
||||||
|
panel.CustomId = utils.RandString(80)
|
||||||
|
if err := dbclient.Client.Panel.Update(panel); err != nil {
|
||||||
|
ctx.JSON(500, utils.ErrorJson(err))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// get bot context
|
// get bot context
|
||||||
botContext, err := botcontext.ContextForGuild(guildId)
|
botContext, err := botcontext.ContextForGuild(guildId)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user