Myd-F [Confrérie de la Patate]
Myd-F [Confrérie de la Patate]
DIAdiscord.js - Imagine an app
Created by Myd-F [Confrérie de la Patate] on 5/18/2024 in #djs-questions
function to verify image links, but the issue with an embed command
Good evening, I have a small problem. I’ve created a function to verify image links, but the issue with an embed command is that when I defer the response, it creates an infinite loop of ‘The bot is thinking.’ Here are the codes.
9 replies
DIAdiscord.js - Imagine an app
Created by Myd-F [Confrérie de la Patate] on 3/1/2024 in #djs-questions
when I connect to a specific voice channel, I get this Discord API Error
Hello, I've a problem in fact when I connect to a specific voice channel, I get this error
/home/container/node_modules/@discordjs/rest/src/lib/handlers/Shared.ts:148
throw new DiscordAPIError(data, 'code' in data ? data.code : data.error, status, method, url, requestData);
^
DiscordAPIError[10007]: Unknown Member
at handleErrors (/home/container/node_modules/@discordjs/rest/src/lib/handlers/Shared.ts:148:10)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (/home/container/node_modules/@discordjs/rest/src/lib/handlers/SequentialHandler.ts:410:20)
at async SequentialHandler.queueRequest (/home/container/node_modules/@discordjs/rest/src/lib/handlers/SequentialHandler.ts:168:11)
at async _REST.request (/home/container/node_modules/@discordjs/rest/src/lib/REST.ts:211:20)
at async GuildMemberManager._fetchSingle (/home/container/node_modules/discord.js/src/managers/GuildMemberManager.js:221:18) {
requestBody: { files: undefined, json: undefined },
rawError: { message: 'Unknown Member', code: 10007 },
code: 10007,
status: 404,
method: 'GET',
url: 'https://discord.com/api/v10/guilds/1151525733643063388/members/828875991433740299'
}
/home/container/node_modules/@discordjs/rest/src/lib/handlers/Shared.ts:148
throw new DiscordAPIError(data, 'code' in data ? data.code : data.error, status, method, url, requestData);
^
DiscordAPIError[10007]: Unknown Member
at handleErrors (/home/container/node_modules/@discordjs/rest/src/lib/handlers/Shared.ts:148:10)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (/home/container/node_modules/@discordjs/rest/src/lib/handlers/SequentialHandler.ts:410:20)
at async SequentialHandler.queueRequest (/home/container/node_modules/@discordjs/rest/src/lib/handlers/SequentialHandler.ts:168:11)
at async _REST.request (/home/container/node_modules/@discordjs/rest/src/lib/REST.ts:211:20)
at async GuildMemberManager._fetchSingle (/home/container/node_modules/discord.js/src/managers/GuildMemberManager.js:221:18) {
requestBody: { files: undefined, json: undefined },
rawError: { message: 'Unknown Member', code: 10007 },
code: 10007,
status: 404,
method: 'GET',
url: 'https://discord.com/api/v10/guilds/1151525733643063388/members/828875991433740299'
}
How to resolv this problem?
5 replies