forked from pothtonswer/discordmuffin
feat: add ActionRowBuilder
This commit is contained in:
parent
8dab9057e8
commit
7160f1c421
1 changed files with 10 additions and 0 deletions
10
builder.go
10
builder.go
|
@ -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...)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue