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 _datastore.role.update(
    id: id.value,
    serverId: serverId.value,
    reason: reason,
    payload: {'mentionable': value},
  );
}