diff --git a/lib/src/api/messages/partial_message.dart b/lib/src/api/messages/partial_message.dart index b81c31099..edd58c16b 100644 --- a/lib/src/api/messages/partial_message.dart +++ b/lib/src/api/messages/partial_message.dart @@ -80,9 +80,10 @@ class PartialMessage { DateTime get createdAt => DateTime.parse(_timestamp); DateTime? get updatedAt => _editedTimestamp != null ? DateTime.parse(_editedTimestamp!) : null; - Future delete () async { + Future delete ({ String? reason }) async { await ioc.use() .destroy(url: '/channels/$_channelId/messages/$id') + .auditLog(reason) .build(); } }