feat: Add canceled container
This commit is contained in:
parent
d83823ffa6
commit
c7b548a9c5
2 changed files with 14 additions and 1 deletions
|
@ -61,7 +61,7 @@ var DeregisterComponent *commands.Component = &commands.Component{
|
|||
return ctx.Inter.EditReply(&utils.InteractionEdit{
|
||||
Flags: &flags,
|
||||
Components: &[]discordgo.MessageComponent{
|
||||
utils.GetDeclineContainer(discordgo.TextDisplay{
|
||||
utils.GetCanceledContainer(discordgo.TextDisplay{
|
||||
Content: "탈퇴를 거부했어요.",
|
||||
}),
|
||||
},
|
||||
|
|
|
@ -38,6 +38,19 @@ func GetDeclineContainer(components ...discordgo.MessageComponent) *discordgo.Co
|
|||
return c
|
||||
}
|
||||
|
||||
func GetCanceledContainer(components ...discordgo.MessageComponent) *discordgo.Container {
|
||||
c := &discordgo.Container{
|
||||
Components: []discordgo.MessageComponent{
|
||||
discordgo.TextDisplay{
|
||||
Content: "### ❌ 취소",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
c.Components = append(c.Components, components...)
|
||||
return c
|
||||
}
|
||||
|
||||
func GetSuccessContainer(components ...discordgo.MessageComponent) *discordgo.Container {
|
||||
c := &discordgo.Container{
|
||||
Components: []discordgo.MessageComponent{
|
||||
|
|
Loading…
Reference in a new issue