build method
override
Implementation
@override
Map<String, Object?> build() => {
...super.build(),
'style': style.value,
if (label != null) 'label': label,
if (emoji != null)
'emoji': {
'id': emoji!.id == Snowflake.zero ? null : emoji!.id.toString(),
'name': emoji!.name,
if (emoji is GuildEmoji) 'animated': (emoji as GuildEmoji).isAnimated == true,
},
if (customId != null) 'custom_id': customId,
if (url != null) 'url': url!.toString(),
if (isDisabled != null) 'disabled': isDisabled,
};