crossPost method

Future<void> crossPost()

Implementation

Future<void> crossPost () async {
  if (channel.type != ChannelType.guildNews) {
    ioc.use<MineralCli>().console.warn('Message $id cannot be cross-posted as it is not in an announcement channel');
    return;
  }

  await ioc.use<DiscordApiHttpService>().post(url: '/channels/${super.channel.id}/messages/${super.id}/crosspost')
    .build();
}