messages method

Future<void> messages(
  1. List<T> messages, {
  2. String? reason,
})

Delete some specified Message

Example :

final TextChannel channel = await guild.channels.resolve('240561194958716924');
await channel.bulkDelete.messages([channel.messages.cache.values.first, channel.messages.cache.values.last]);

Implementation

Future<void> messages(List<T> messages, {String? reason}) async {
  return ids(messages.map((e) => e.id).toList(), reason: reason);
}