setMentionable method
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},
);
}