resolveChannel method

Future<ServerChannel> resolveChannel({
  1. bool force = false,
})

Resolves the channel that the button was clicked on

final channel = await ctx.resolveChannel();

Implementation

Future<ServerChannel> resolveChannel({bool force = false}) async {
  final channel = await _dataStore.channel.get<ServerChannel>(channelId.value, force);
  return channel!;
}