crosspost method

Future<void> crosspost()

Crosspost the message.

await message.crosspost(); // only works for guild announcements

Implementation

Future<void> crosspost() async {
  final channel = await resolveChannel();
  if (channel.type != ChannelType.guildAnnouncement) {
    return;
  }

  await _datastore.message.crosspost(channelId, id);
}