get method

Future<Role?> get(
  1. String id, {
  2. bool force = false,
})

Get a channel by its id.

final channel = await server.channels.get('1091121140090535956');

Implementation

Future<Role?> get(String id, {bool force = false}) =>
    _datastore.role.get(_serverId.value, id, force);