setUnicodeEmoji method

Future<void> setUnicodeEmoji(
  1. String emoji,
  2. String? reason
)

Set the role's emoji.

await role.setUnicodeEmoji('👑', reason: 'Testing');

Implementation

Future<void> setUnicodeEmoji(String emoji, String? reason) async {
  await dataStoreRole.updateRole(
    id: id,
    serverId: server.id,
    reason: reason,
    payload: {'unicode_emoji': emoji},
  );
}