Discordchatexporter: Having trouble with exporting a DM

Created on 2 Sep 2020  路  2Comments  路  Source: Tyrrrz/DiscordChatExporter

The exporter works when I use the exportguild command, but not when I'm trying to export a channel using the CLI (specifically a DM).

Here's the command I'm using to run the exporter (on MacOS):

dotnet DiscordChatExporter.Cli.dll export -c CHANNELID -t TOKEN

Where CHANNELID and TOKEN are replaced appropriately.

And the error message:
DiscordChatExporter.Domain.Exceptions.DiscordChatExporterException: Requested resource does not exist.
at DiscordChatExporter.Domain.Discord.DiscordClient.GetJsonResponseAsync(String url) in D:\a\DiscordChatExporter\DiscordChatExporter\DiscordChatExporter.Domain\Discord\DiscordClient.cs:line 72
at DiscordChatExporter.Domain.Discord.DiscordClient.GetChannelAsync(String channelId) in D:\a\DiscordChatExporter\DiscordChatExporter\DiscordChatExporter.Domain\Discord\DiscordClient.cs:line 187
at DiscordChatExporter.Cli.Commands.Base.ExportCommandBase.ExportAsync(IConsole console, String channelId) in D:\a\DiscordChatExporter\DiscordChatExporter\DiscordChatExporter.Cli\Commands\Base\ExportCommandBase.cs:line 68
at DiscordChatExporter.Cli.Commands.ExportChannelCommand.ExecuteAsync(IConsole console) in D:\a\DiscordChatExporter\DiscordChatExporter\DiscordChatExporter.Cli\Commands\ExportChannelCommand.cs:line 14
at CliFx.CliApplication.RunAsync(IReadOnlyList1 commandLineArguments, IReadOnlyDictionary2 environmentVariables)

question

All 2 comments

Make sure you're copying the DM ID, not the user ID.

Ack, thank you for the quick reply! That was the problem.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Jakhaxz picture Jakhaxz  路  3Comments

billyon picture billyon  路  3Comments

Unknow0059 picture Unknow0059  路  6Comments

quyleanh picture quyleanh  路  6Comments

ealgase picture ealgase  路  4Comments