Jannik44
Jannik44
DIAdiscord.js - Imagine a boo! 👻
Created by Jannik44 on 12/8/2023 in #djs-questions
How to get forumchannel id of message?
Hello, i have message in forumposts where i need the id of the forumchannel of the message, i searched online and nothing worked so far, so how do i do it?
4 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Jannik44 on 12/5/2023 in #djs-questions
images not in message?
Hello, when i get the messages every message with image is just empty, why is that? it shows every text message normally but when its an image there is no image link or smth like that, just an empty response
17 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Jannik44 on 11/9/2023 in #djs-questions
Is there a quick and easy way to get a channels name by id?
this code drops an error so ig im doing it wrong
client.channels
.fetch(message.channel)
.then((ch) => console.log('channel name is: ' + ch.name))
.catch(console.error);
client.channels
.fetch(message.channel)
.then((ch) => console.log('channel name is: ' + ch.name))
.catch(console.error);
DiscordAPIError[50035]: Invalid Form Body
channel_id[NUMBER_TYPE_COERCE]: Value "<" is not snowflake.
at handleErrors (/home/j44/Downloads/themer/tut/node_modules/@discordjs/rest/dist/index.js:687:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (/home/j44/Downloads/themer/tut/node_modules/@discordjs/rest/dist/index.js:1072:23)
at async SequentialHandler.queueRequest (/home/j44/Downloads/themer/tut/node_modules/@discordjs/rest/dist/index.js:913:14)
at async _REST.request (/home/j44/Downloads/themer/tut/node_modules/@discordjs/rest/dist/index.js:1218:22)
at async ChannelManager.fetch (/home/j44/Downloads/themer/tut/node_modules/discord.js/src/managers/ChannelManager.js:123:18) {
requestBody: { files: undefined, json: undefined },
rawError: {
message: 'Invalid Form Body',
code: 50035,
errors: { channel_id: [Object] }
},
DiscordAPIError[50035]: Invalid Form Body
channel_id[NUMBER_TYPE_COERCE]: Value "<" is not snowflake.
at handleErrors (/home/j44/Downloads/themer/tut/node_modules/@discordjs/rest/dist/index.js:687:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (/home/j44/Downloads/themer/tut/node_modules/@discordjs/rest/dist/index.js:1072:23)
at async SequentialHandler.queueRequest (/home/j44/Downloads/themer/tut/node_modules/@discordjs/rest/dist/index.js:913:14)
at async _REST.request (/home/j44/Downloads/themer/tut/node_modules/@discordjs/rest/dist/index.js:1218:22)
at async ChannelManager.fetch (/home/j44/Downloads/themer/tut/node_modules/discord.js/src/managers/ChannelManager.js:123:18) {
requestBody: { files: undefined, json: undefined },
rawError: {
message: 'Invalid Form Body',
code: 50035,
errors: { channel_id: [Object] }
},
15 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Jannik44 on 11/6/2023 in #djs-questions
How to get all channels in a guild?
it looks like there is no way to get all channels in a guild, some posts were referring to .cache but thats not a real solution, how can i do it?
57 replies