update method
Update an emoji.
await emoji.update(name: 'New Emoji Name');
Implementation
Future<void> update(
{String? name, Image? image, List<Snowflake> roles = const [], String? reason}) async {
await _datastore.emoji.update(
id: id!.value,
serverId: serverId.value,
reason: reason,
payload: {
if (name != null) 'name': name.replaceAll(' ', '_'),
if (image != null) 'image': image.base64,
if (roles.isNotEmpty) 'roles': roles,
},
);
}