계정 버림
DIAdiscord.js - Imagine an app
•Created by 계정 버림 on 2/10/2024 in #djs-questions
Can I send a message without async?
thank You!! I fixed it
5 replies
DIAdiscord.js - Imagine an app
•Created by 계정 버림 on 8/19/2023 in #djs-questions
Add role to user
Thank uuuuu it work perfectly !!
35 replies
DIAdiscord.js - Imagine an app
•Created by 계정 버림 on 8/19/2023 in #djs-questions
Add role to user
Thank u ill try it later
35 replies
DIAdiscord.js - Imagine an app
•Created by 계정 버림 on 8/19/2023 in #djs-questions
Add role to user
Thank uu then it won't return favicon anymore?
35 replies
DIAdiscord.js - Imagine an app
•Created by 계정 버림 on 8/19/2023 in #djs-questions
Add role to user
Ohhhh I wonder why the params value returning soo stealthy The "favicon.ico"
35 replies
DIAdiscord.js - Imagine an app
•Created by 계정 버림 on 8/19/2023 in #djs-questions
Add role to user
Next Step: Getting params Without favicon.ico
35 replies
DIAdiscord.js - Imagine an app
•Created by 계정 버림 on 8/19/2023 in #djs-questions
Add role to user
lmao
35 replies
DIAdiscord.js - Imagine an app
•Created by 계정 버림 on 8/19/2023 in #djs-questions
Add role to user
35 replies
DIAdiscord.js - Imagine an app
•Created by 계정 버림 on 8/19/2023 in #djs-questions
Add role to user
I was a idiot ....
35 replies
DIAdiscord.js - Imagine an app
•Created by 계정 버림 on 8/19/2023 in #djs-questions
Add role to user
that is a user Id
35 replies
DIAdiscord.js - Imagine an app
•Created by 계정 버림 on 8/19/2023 in #djs-questions
Add role to user
Yeah!
35 replies
DIAdiscord.js - Imagine an app
•Created by 계정 버림 on 8/19/2023 in #djs-questions
Add role to user
35 replies
DIAdiscord.js - Imagine an app
•Created by 계정 버림 on 8/19/2023 in #djs-questions
Add role to user
I think this value
const id = req.params.id
is problem35 replies
DIAdiscord.js - Imagine an app
•Created by 계정 버림 on 8/19/2023 in #djs-questions
Add role to user
I just edit it to this
but it still return error ..
35 replies
DIAdiscord.js - Imagine an app
•Created by 계정 버림 on 8/19/2023 in #djs-questions
Add role to user
oh
req.params.id
is this a favicon.ico
?35 replies
DIAdiscord.js - Imagine an app
•Created by 계정 버림 on 8/19/2023 in #djs-questions
Add role to user
35 replies
DIAdiscord.js - Imagine an app
•Created by 계정 버림 on 8/19/2023 in #djs-questions
Add role to user
It works perfectly just local parameter, but when I use it on express server it return this
DiscordAPIError[50035]: Invalid Form Body
user_id[NUMBER_TYPE_COERCE]: Value "favicon.ico" is not snowflake.
at handleErrors (D:\Project\Starly\web\node_modules\@discordjs\rest\dist\index.js:687:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (D:\Project\Starly\web\node_modules\@discordjs\rest\dist\index.js:1072:23)
at async SequentialHandler.queueRequest (D:\Project\Starly\web\node_modules\@discordjs\rest\dist\index.js:913:14)
at async _REST.request (D:\Project\Starly\web\node_modules\@discordjs\rest\dist\index.js:1218:22)
at async GuildMemberManager._fetchSingle (D:\Project\Starly\web\node_modules\discord.js\src\managers\GuildMemberManager.js:221:18) {
requestBody: { files: undefined, json: undefined },
rawError: {
message: 'Invalid Form Body',
code: 50035,
errors: {
user_id: {
_errors: [
{
code: 'NUMBER_TYPE_COERCE',
message: 'Value "favicon.ico" is not snowflake.'
}
]
}
}
},
code: 50035,
status: 400,
method: 'GET',
url: 'https://discord.com/api/v10/guilds/1141562591940968481/members/favicon.ico'
}
Node.js v20.3.1
[nodemon] app crashed - waiting for file changes before starting...
35 replies
DIAdiscord.js - Imagine an app
•Created by 계정 버림 on 8/19/2023 in #djs-questions
Add role to user
Thank your response,
<GuildMember>.roles.add(…)
this add parameter is role's id ?35 replies
DIAdiscord.js - Imagine an app
•Created by 계정 버림 on 3/9/2023 in #djs-questions
Send a message every minute
Thank uu
5 replies
DIAdiscord.js - Imagine an app
•Created by 계정 버림 on 2/11/2023 in #djs-questions
Guild's member by id
I don't know javascript very well so what's different with promise and await?
40 replies