setColor method
Set the role's color.
await role.setColor(Color.fromRGB(255, 0, 0), reason: 'Testing');
Implementation
Future<void> setColor(Color color, String? reason) async {
await _datastore.role.update(
id: id.value,
serverId: serverId.value,
reason: reason,
payload: {'color': color.toInt()},
);
}