delete method

Future<void> delete({
  1. String? reason,
})
inherited

Delete this

await message.delete(reason: 'Lorem ipsum dolor sit amet');

Implementation

Future<void> delete ({ String? reason }) async {
  await ioc.use<DiscordApiHttpService>()
    .destroy(url: '/channels/$_channelId/messages/$id')
    .auditLog(reason)
    .build();
}