Killer Boss Original
Killer Boss Original
DIAdiscord.js - Imagine an app
Created by Killer Boss Original on 7/17/2023 in #djs-questions
editReply after deferReply don't works
console.log("hi1")
await interaction.editReply(`Pong! `)
console.log("hi2")
console.log("hi1")
await interaction.editReply(`Pong! `)
console.log("hi2")
- it's in an async function - it send heartebat - it log "hi1" but not "hi2" - it don't edit the reply - (before this there is a defer reply) - it don't log any rate-limit from client.ws.on("ratelimited")
11 replies
DIAdiscord.js - Imagine an app
Created by Killer Boss Original on 1/8/2023 in #djs-questions
Discord Linked Roles
How can i use discord linked roles with discord js, and how it works?
7 replies
DIAdiscord.js - Imagine an app
Created by Killer Boss Original on 8/21/2022 in #djs-questions
name_localizations[STRING_TYPE_REGEX] String value did not match validation regex.
————————————————————————————————— [ AntiCrash ] : Unhandled Rejection/Catch ————————————————————————————————— DiscordAPIError[50035]: Invalid Form Body name_localizations[STRING_TYPE_REGEX]: String value did not match validation regex. at SequentialHandler.runRequest (/home/container/node_modules/@discordjs/rest/dist/lib/handlers/SequentialHandler.cjs:287:15)
10 replies
DIAdiscord.js - Imagine an app
Created by Killer Boss Original on 8/18/2022 in #djs-questions
How can I check the height of a member's first role?
How can I check the height of a member's first role?
9 replies
DIAdiscord.js - Imagine an app
Created by Killer Boss Original on 8/12/2022 in #djs-questions
How can i check if a members Is in a guild?
I have guild id and member id, but the member it may not be fetched
10 replies
DIAdiscord.js - Imagine an app
Created by Killer Boss Original on 8/11/2022 in #djs-questions
How can I check if a user has a certain permission?
Using for example the flags 'ADMINISTRATOR' or 'MANAGE_CHANNEL' ...
5 replies
DIAdiscord.js - Imagine an app
Created by Killer Boss Original on 8/3/2022 in #djs-questions
Error with create invite MaxAge 0
7 replies
DIAdiscord.js - Imagine an app
Created by Killer Boss Original on 8/2/2022 in #djs-questions
ErrorCOMPONENT_LAYOUT_WIDTH_EXCEEDED
————————————————————————————————— [ AntiCrash ] : Unhandled Rejection/Catch ————————————————————————————————— DiscordAPIError[50035]: Invalid Form Body data.components[0].components[1][COMPONENT_LAYOUT_WIDTH_EXCEEDED]: The specified component exceeds the maximum width data.components[0].components[2][COMPONENT_LAYOUT_WIDTH_EXCEEDED]: The specified component exceeds the maximum width data.components[0].components[3][COMPONENT_LAYOUT_WIDTH_EXCEEDED]: The specified component exceeds the maximum width at SequentialHandler.runRequest (/home/container/node_modules/@discordjs/rest/dist/lib/handlers/SequentialHandler.cjs:287:15) at runMicrotasks (<anonymous>)
8 replies
DIAdiscord.js - Imagine an app
Created by Killer Boss Original on 8/2/2022 in #djs-questions
Can i add a select menu' to a modal?
How can i do?
6 replies
DIAdiscord.js - Imagine an app
Created by Killer Boss Original on 8/1/2022 in #djs-questions
Error with discord subcommand type
Why it give me this error? ————————————————————————————————— [ AntiCrash ] : Uncaught Exception/Catch ————————————————————————————————— DiscordAPIError[50035]: Invalid Form Body 14.options[0].type[NUMBER_TYPE_COERCE]: Value "STRING" is not int. 33.options[2].type[NUMBER_TYPE_COERCE]: Value "CHANNEL" is not int.—— [
6 replies
DIAdiscord.js - Imagine an app
Created by Killer Boss Original on 8/1/2022 in #djs-questions
Errore with permission
Why it give me this error?
—————————————————————————————————
[ AntiCrash ] : Uncaught Exception/Catch
—————————————————————————————————
TypeError: Cannot read properties of undefined (reading 'permissions')
at Client.<anonymous> (/home/container/discord/events/interactionCreate.js:225:38)
at Client.emit (node:events:527:28)
at InteractionCreateAction.handle (/home/container/node_modules/discord.js/src/client/actions/InteractionCreate.js:81:12)
at Object.module.exports [as INTERACTION_CREATE] (/home/container/node_modules/discord.js/src/client/websocket/handlers/INTERACTION_CREATE.js:4:36)
at WebSocketManager.handlePacket (/home/container/node_modules/discord.js/src/client/websocket/WebSocketManager.js:352:31)
at WebSocketShard.onPacket (/home/container/node_modules/discord.js/src/client/websocket/WebSocketShard.js:481:22)
at WebSocketShard.onMessage (/home/container/node_modules/discord.js/src/client/websocket/WebSocketShard.js:321:10)
at WebSocket.onMessage (/home/container/node_modules/ws/lib/event-target.js:199:18)
at WebSocket.emit (node:events:527:28)
at Receiver.receiverOnMessage (/home/container/node_modules/ws/lib/websocket.js:1178:20) uncaughtException undefined
—————————————————————————————————
[ AntiCrash ] : Uncaught Exception/Catch
—————————————————————————————————
TypeError: Cannot read properties of undefined (reading 'permissions')
at Client.<anonymous> (/home/container/discord/events/interactionCreate.js:225:38)
at Client.emit (node:events:527:28)
at InteractionCreateAction.handle (/home/container/node_modules/discord.js/src/client/actions/InteractionCreate.js:81:12)
at Object.module.exports [as INTERACTION_CREATE] (/home/container/node_modules/discord.js/src/client/websocket/handlers/INTERACTION_CREATE.js:4:36)
at WebSocketManager.handlePacket (/home/container/node_modules/discord.js/src/client/websocket/WebSocketManager.js:352:31)
at WebSocketShard.onPacket (/home/container/node_modules/discord.js/src/client/websocket/WebSocketShard.js:481:22)
at WebSocketShard.onMessage (/home/container/node_modules/discord.js/src/client/websocket/WebSocketShard.js:321:10)
at WebSocket.onMessage (/home/container/node_modules/ws/lib/event-target.js:199:18)
at WebSocket.emit (node:events:527:28)
at Receiver.receiverOnMessage (/home/container/node_modules/ws/lib/websocket.js:1178:20) uncaughtException undefined
this is the code:
if (!interaction.guild.me.permissions.has(command.botPermissions || []))
if (!interaction.guild.me.permissions.has(command.botPermissions || []))
7 replies
DIAdiscord.js - Imagine an app
Created by Killer Boss Original on 7/21/2022 in #djs-questions
General question
If i pick an array or an object from https://discord.dev can i use it or there is changes? For example:
{
"content": "This is a message with components",
"components": [
{
"type": 1,
"components": [
{
"type": 2,
"label": "Click me!",
"style": 1,
"custom_id": "click_one"
}
]

}
]
}
{
"content": "This is a message with components",
"components": [
{
"type": 1,
"components": [
{
"type": 2,
"label": "Click me!",
"style": 1,
"custom_id": "click_one"
}
]

}
]
}
can i use this?
3 replies
DIAdiscord.js - Imagine an app
Created by Killer Boss Original on 7/21/2022 in #djs-questions
discord.js v14 intents
I can use the number like 32767 or i have to use GatewayIntentBits?
7 replies