.chanokh
.chanokh
DIAdiscord.js - Imagine an app
Created by .chanokh on 10/28/2023 in #djs-questions
Emojis in buttons doesn't work
Code: https://sourceb.in/dCkWGPGOOj Error is that it says it is a invalid emoji, but it literally worked like 2 days ago Error:
DiscordAPIError[50035]: Invalid Form Body
components[0].components[0].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji
components[0].components[1].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji
components[2].components[0].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji
components[2].components[1].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji
at handleErrors (C:\Users\truly\Documents\Die Lehre der Väter\node_modules\@discordjs\rest\dist\index.js:687:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (C:\Users\truly\Documents\Die Lehre der Väter\node_modules\@discordjs\rest\dist\index.js:1072:23)
at async SequentialHandler.queueRequest (C:\Users\truly\Documents\Die Lehre der Väter\node_modules\@discordjs\rest\dist\index.js:913:14)
at async _REST.request (C:\Users\truly\Documents\Die Lehre der Väter\node_modules\@discordjs\rest\dist\index.js:1218:22)
at async TextChannel.send (C:\Users\truly\Documents\Die Lehre der Väter\node_modules\discord.js\src\structures\interfaces\TextBasedChannel.js:162:15)
at async Object.execute (C:\Users\truly\Documents\Die Lehre der Väter\src\commands\miscellaneous\suggestion.js:73:29)
at async Object.execute (C:\Users\truly\Documents\Die Lehre der Väter\src\events\interactionCreate.js:33:17) {
requestBody: {
files: [],
json: {
content: undefined,
tts: false,
nonce: undefined,
embeds: [Array],
components: [Array],
username: undefined,
avatar_url: undefined,
allowed_mentions: undefined,
flags: undefined,
message_reference: undefined,
attachments: undefined,
sticker_ids: undefined,
thread_name: undefined
}
},
rawError: {
message: 'Invalid Form Body',
code: 50035,
errors: { components: [Object] }
},
code: 50035,
status: 400,
method: 'POST',
url: 'https://discord.com/api/v10/channels/1163838734307971214/messages'
}
DiscordAPIError[50035]: Invalid Form Body
components[0].components[0].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji
components[0].components[1].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji
components[2].components[0].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji
components[2].components[1].emoji.name[BUTTON_COMPONENT_INVALID_EMOJI]: Invalid emoji
at handleErrors (C:\Users\truly\Documents\Die Lehre der Väter\node_modules\@discordjs\rest\dist\index.js:687:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (C:\Users\truly\Documents\Die Lehre der Väter\node_modules\@discordjs\rest\dist\index.js:1072:23)
at async SequentialHandler.queueRequest (C:\Users\truly\Documents\Die Lehre der Väter\node_modules\@discordjs\rest\dist\index.js:913:14)
at async _REST.request (C:\Users\truly\Documents\Die Lehre der Väter\node_modules\@discordjs\rest\dist\index.js:1218:22)
at async TextChannel.send (C:\Users\truly\Documents\Die Lehre der Väter\node_modules\discord.js\src\structures\interfaces\TextBasedChannel.js:162:15)
at async Object.execute (C:\Users\truly\Documents\Die Lehre der Väter\src\commands\miscellaneous\suggestion.js:73:29)
at async Object.execute (C:\Users\truly\Documents\Die Lehre der Väter\src\events\interactionCreate.js:33:17) {
requestBody: {
files: [],
json: {
content: undefined,
tts: false,
nonce: undefined,
embeds: [Array],
components: [Array],
username: undefined,
avatar_url: undefined,
allowed_mentions: undefined,
flags: undefined,
message_reference: undefined,
attachments: undefined,
sticker_ids: undefined,
thread_name: undefined
}
},
rawError: {
message: 'Invalid Form Body',
code: 50035,
errors: { components: [Object] }
},
code: 50035,
status: 400,
method: 'POST',
url: 'https://discord.com/api/v10/channels/1163838734307971214/messages'
}
3 replies
DIAdiscord.js - Imagine an app
Created by .chanokh on 10/28/2023 in #djs-questions
new EmbedBuilder().from(...) is not a function - since when?
Error:
TypeError: (intermediate value).from is not a function
at Object.execute (C:\Users\truly\Documents\src\events\interactionCreate.js:89:57)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Emitted 'error' event on Client instance at:
at emitUnhandledRejectionOrErr (node:events:398:10)
at process.processTicksAndRejections (node:internal/process/task_queues:84:21)

Node.js v18.18.2
TypeError: (intermediate value).from is not a function
at Object.execute (C:\Users\truly\Documents\src\events\interactionCreate.js:89:57)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Emitted 'error' event on Client instance at:
at emitUnhandledRejectionOrErr (node:events:398:10)
at process.processTicksAndRejections (node:internal/process/task_queues:84:21)

Node.js v18.18.2
code:https://sourceb.in/BFauv4BGUl new EmbedBuilder.from(...) is also not working
5 replies