setMentionable method

Future<void> setMentionable(
  1. bool value,
  2. String? reason
)

Enable or disable the role's mentionable status.

await role.setMentionable(true, reason: 'Testing');

Implementation

Future<void> setMentionable(bool value, String? reason) async {
  await dataStoreRole.updateRole(
    id: id,
    serverId: server.id,
    reason: reason,
    payload: {'mentionable': value},
  );
}