feat: add ComponentEmojiBuilder
This commit is contained in:
parent
1545e23e32
commit
ac56d53b7e
1 changed files with 23 additions and 0 deletions
23
builder.go
23
builder.go
|
@ -218,3 +218,26 @@ func (d *SelectMenuDefaultValue) SetID(id string) *SelectMenuDefaultValue {
|
|||
d.ID = id
|
||||
return d
|
||||
}
|
||||
|
||||
// ComponentEmojiBuilder creates a new ComponentEmoji struct.
|
||||
func ComponentEmojiBuilder() *ComponentEmoji {
|
||||
return &ComponentEmoji{}
|
||||
}
|
||||
|
||||
// SetID sets ID for ComponentEmoji.
|
||||
func (c *ComponentEmoji) SetID(id string) *ComponentEmoji {
|
||||
c.ID = id
|
||||
return c
|
||||
}
|
||||
|
||||
// SetName sets name for ComponentEmoji.
|
||||
func (c *ComponentEmoji) SetName(name string) *ComponentEmoji {
|
||||
c.Name = name
|
||||
return c
|
||||
}
|
||||
|
||||
// SetAnimated sets animated for ComponentEmoji.
|
||||
func (c *ComponentEmoji) SetAnimated(animated bool) *ComponentEmoji {
|
||||
c.Animated = animated
|
||||
return c
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue