Closed eelegiap closed 1 year ago
Edit: some of the things coming up as channel IDs, I can't find the actual channels in the Discord server anywhere. Sometimes, they are the names of threads, and sometimes I can't even find the name or ID anywhere in the server.
Please try the CI build (:latest
tag)
Version
ver 2.40.1
Flavor
CLI (Command-Line Interface)
Export format
No response
Details
I am using Docker and CLI. First, I scrape all channel IDs from a server programmatically using the
channels
command. Then I iterate over those channel IDs to scrape all messages from them using theexport
command. For some of the channels, I get this error:DiscordChatExporter.Core.Exceptions.DiscordChatExporterException: Access is forbidden. at DiscordChatExporter.Core.Discord.DiscordClient.GetJsonResponseAsync(String url, CancellationToken cancellationToken) in /build/DiscordChatExporter.Core/Discord/DiscordClient.cs:135 at DiscordChatExporter.Core.Discord.DiscordClient.GetChannelAsync(Snowflake channelId, CancellationToken cancellationToken) in /build/DiscordChatExporter.Core/Discord/DiscordClient.cs:364 at DiscordChatExporter.Cli.Commands.Base.ExportCommandBase.ExecuteAsync(IConsole console, IReadOnlyList
1 channelIds) in /build/DiscordChatExporter.Cli/Commands/Base/ExportCommandBase.cs:282 at DiscordChatExporter.Cli.Commands.ExportChannelsCommand.ExecuteAsync(IConsole console) in /build/DiscordChatExporter.Cli/Commands/ExportChannelsCommand.cs:26 at CliFx.CliApplication.RunAsync(ApplicationSchema applicationSchema, CommandInput commandInput) in //CliFx/CliApplication.cs:153 at CliFx.CliApplication.RunAsync(IReadOnlyList1 commandLineArguments, IReadOnlyDictionary
2 environmentVariables) in //CliFx/CliApplication.cs:193`Steps to reproduce
docker run --rm \ -v /outpath \ tyrrrz/discordchatexporter:stable export \ -t "$BOT_TOKEN" \ -c "$CHANNEL_ID" \ -f Json \ -o "$OUTPUT_NAME".json \ --after "$START" \ --before "$END" \