jsw
jsw
DIAdiscord.js - Imagine an app
Created by jsw on 12/29/2024 in #djs-questions
Bot crashes: invalid webhook token
oh that sucks. Thanks!
35 replies
DIAdiscord.js - Imagine an app
Created by jsw on 12/29/2024 in #djs-questions
Bot crashes: invalid webhook token
35 replies
DIAdiscord.js - Imagine an app
Created by jsw on 12/29/2024 in #djs-questions
Bot crashes: invalid webhook token
it's running as a user app
35 replies
DIAdiscord.js - Imagine an app
Created by jsw on 12/29/2024 in #djs-questions
Bot crashes: invalid webhook token
Oh that might be it
35 replies
DIAdiscord.js - Imagine an app
Created by jsw on 12/29/2024 in #djs-questions
Bot crashes: invalid webhook token
35 replies
DIAdiscord.js - Imagine an app
Created by jsw on 12/29/2024 in #djs-questions
Bot crashes: invalid webhook token
it happened in a guild (i beleive you can't make threads in dms right?) and i do have the guild intent
export const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.DirectMessages,
],
});
export const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.DirectMessages,
],
});
35 replies
DIAdiscord.js - Imagine an app
Created by jsw on 12/29/2024 in #djs-questions
Bot crashes: invalid webhook token
do i need to fetch the channel before fetching the reply?
35 replies
DIAdiscord.js - Imagine an app
Created by jsw on 12/29/2024 in #djs-questions
Bot crashes: invalid webhook token
error: Uncaught (in promise) Error [ChannelNotCached]: Could not find the channel where this message came from in the cache!
at Message.startThread (file:///C:/Users/Jurn Wubben/AppData/Local/deno/npm/registry.npmjs.org/discord.js/14.16.3/src/structures/Message.js:951:46)
at createClashManager (file:///C:/Users/Jurn Wubben/Documents/DCBot/src/commands/utility/coc.ts:567:17)
at eventLoopTick (ext:core/01_core.js:175:7)
at async Object.execute (file:///C:/Users/Jurn Wubben/Documents/DCBot/src/commands/utility/coc.ts:618:5)
Watcher Process failed. Restarting on file change...
error: Uncaught (in promise) Error [ChannelNotCached]: Could not find the channel where this message came from in the cache!
at Message.startThread (file:///C:/Users/Jurn Wubben/AppData/Local/deno/npm/registry.npmjs.org/discord.js/14.16.3/src/structures/Message.js:951:46)
at createClashManager (file:///C:/Users/Jurn Wubben/Documents/DCBot/src/commands/utility/coc.ts:567:17)
at eventLoopTick (ext:core/01_core.js:175:7)
at async Object.execute (file:///C:/Users/Jurn Wubben/Documents/DCBot/src/commands/utility/coc.ts:618:5)
Watcher Process failed. Restarting on file change...
same code as the gist except i changed this part (line 556-570) (added fetchReply and startThread
const message = await interaction.reply({
...clashMessage({
handle: clash,
langs,
modes,
players: [{ nickname: "loading..." }],
started: false,
}, interaction.user.id),
fetchReply: true,
});

await message.startThread({
name: "Clash of Code",
reason: "Discuss your coc here.",
});
const message = await interaction.reply({
...clashMessage({
handle: clash,
langs,
modes,
players: [{ nickname: "loading..." }],
started: false,
}, interaction.user.id),
fetchReply: true,
});

await message.startThread({
name: "Clash of Code",
reason: "Discuss your coc here.",
});
35 replies
DIAdiscord.js - Imagine an app
Created by jsw on 12/29/2024 in #djs-questions
Bot crashes: invalid webhook token
Okay so i was trying to create a thread to the message, but i kept getting this error while trying to fetch it (sec i deleted the code so rewriting)
35 replies
DIAdiscord.js - Imagine an app
Created by jsw on 12/29/2024 in #djs-questions
Bot crashes: invalid webhook token
Thanks! I had another (relatively small) issue, can i ask it here or do i need to open another thread?
35 replies
DIAdiscord.js - Imagine an app
Created by jsw on 12/29/2024 in #djs-questions
Bot crashes: invalid webhook token
So just replying to my own message?
35 replies
DIAdiscord.js - Imagine an app
Created by jsw on 12/29/2024 in #djs-questions
Bot crashes: invalid webhook token
Other files are at https://github.com/jsw08/DCBot/tree/52-coc-socketio-integration haven't pushed this one yet.
35 replies
DIAdiscord.js - Imagine an app
Created by jsw on 12/29/2024 in #djs-questions
Bot crashes: invalid webhook token
the game takes around 15 minutes, and can take up to 5-10 minutes before the game starts so max 25 minutes, usually ~16
35 replies
DIAdiscord.js - Imagine an app
Created by jsw on 12/29/2024 in #djs-questions
Bot crashes: invalid webhook token
i reply once to the interaction, and try to edit that message every time the websocket gives an update
35 replies
DIAdiscord.js - Imagine an app
Created by jsw on 12/29/2024 in #djs-questions
Bot crashes: invalid webhook token
35 replies
DIAdiscord.js - Imagine an app
Created by jsw on 12/29/2024 in #djs-questions
Bot crashes: invalid webhook token
Do i have to fetch the message each time and edit it?
35 replies
DIAdiscord.js - Imagine an app
Created by jsw on 12/29/2024 in #djs-questions
Bot crashes: invalid webhook token
How do i get a new webhook or fix this?
35 replies
DIAdiscord.js - Imagine an app
Created by jsw on 12/29/2024 in #djs-questions
Bot crashes: invalid webhook token
clashEventManager is at 218 and the crash happends at 570
35 replies
DIAdiscord.js - Imagine an app
Created by jsw on 12/29/2024 in #djs-questions
Bot crashes: invalid webhook token
35 replies
DIAdiscord.js - Imagine an app
Created by jsw on 12/22/2024 in #djs-questions
Send message to specific channel
okay thanks
38 replies