participant property

User participant

Returns other user in chat if channel is not group dm. Will throw ArgumentError if channel is group dm.

Implementation

User get participant => !this.isGroupDM ? participants.first : throw new ArgumentError("Channel is not direct DM");