Closed TheEssem closed 1 year ago
For reference, the translated stack trace https://github.com/OceanicJS/Oceanic/blob/df03c89b8562b694f9650cefb6084329f9853be9/lib/structures/ThreadChannel.ts#L66 https://github.com/OceanicJS/Oceanic/blob/df03c89b8562b694f9650cefb6084329f9853be9/lib/structures/AnnouncementThreadChannel.ts#L13 https://github.com/OceanicJS/Oceanic/blob/df03c89b8562b694f9650cefb6084329f9853be9/lib/util/TypedCollection.ts#L59 https://github.com/OceanicJS/Oceanic/blob/df03c89b8562b694f9650cefb6084329f9853be9/lib/structures/Guild.ts#L308 https://github.com/OceanicJS/Oceanic/blob/df03c89b8562b694f9650cefb6084329f9853be9/lib/util/TypedCollection.ts#L59 https://github.com/OceanicJS/Oceanic/blob/df03c89b8562b694f9650cefb6084329f9853be9/lib/gateway/Shard.ts#L186 https://github.com/OceanicJS/Oceanic/blob/df03c89b8562b694f9650cefb6084329f9853be9/lib/gateway/Shard.ts#L365 https://github.com/OceanicJS/Oceanic/blob/df03c89b8562b694f9650cefb6084329f9853be9/lib/gateway/Shard.ts#L1184 https://github.com/OceanicJS/Oceanic/blob/df03c89b8562b694f9650cefb6084329f9853be9/lib/gateway/Shard.ts#L1385
I occasionally see this error pop up in logs when starting my bot. Running it standalone results in a crash, but running it in PM2 causes it to keep running after this:
Since it seems to mostly occur on startup before the
ready
event, I'd imagine that it might be due to some missing/uncached data. After some attempts to debug the issue, it seems like aPublicThreadChannel
is being passed into thedata
field of theThreadChannel
constructor. Will keep looking into this.