feat: add ActionRowBuilder

This commit is contained in:
Siwoo Jeon 2025-05-18 18:25:39 +09:00
parent 8dab9057e8
commit 7160f1c421
Signed by: migan
GPG key ID: 036E9A8C5E8E48DA

View file

@ -66,3 +66,13 @@ func (b *MessageEmbed) SetURL(url string) *MessageEmbed {
b.URL = url
return b
}
// ActionRowBuilder creates new ActionRow struct.
func ActionRowBuilder() *ActionsRow {
return &ActionsRow{}
}
// AddComponents adds components for MessageComponent.
func (r *ActionsRow) AddComponents(components ...MessageComponent) {
r.Components = append(r.Components, components...)
}