dmChannel property
Gets the DMChannel
for the user.
Implementation
FutureOr<DMChannel> get dmChannel {
final cacheChannel = client.channels.findOne((item) => item is DMChannel && item.participants.contains(this));
if (cacheChannel != null) {
return cacheChannel as DMChannel;
}
return client.httpEndpoints.createDMChannel(this.id);
}