build method
Returns built response for api
Implementation
@override
Map<String, dynamic> build() => {
...super.build(),
"label": this.label,
"style": this.style.value,
if (this.disabled) "disabled": true,
if (this.emoji != null) "emoji": {
if (this.emoji is IGuildEmoji) "id": (this.emoji as IGuildEmoji).id,
if (this.emoji is UnicodeEmoji) "name": (this.emoji as UnicodeEmoji).code,
if (this.emoji is GuildEmoji) "animated": (this.emoji as GuildEmoji).animated,
}
};