Mikey
Mikey
DIAdiscord.js - Imagine an app
Created by Mikey on 7/6/2024 in #djs-questions
channels.create().then() runs before the result is acquired
ty goodsir :prayge: needed to mark the above function as async and set it to await
10 replies
DIAdiscord.js - Imagine an app
Created by Mikey on 7/6/2024 in #djs-questions
channels.create().then() runs before the result is acquired
14.15.3
10 replies
DIAdiscord.js - Imagine an app
Created by Mikey on 7/6/2024 in #djs-questions
channels.create().then() runs before the result is acquired
it shows the id
Error: Unknown column 'undefined' in 'field list'
at Packet.asError (d:\NewDesktop\emberfall\Discord_Bot\node_modules\mysql2\lib\packets\packet.js:728:17)
at Query.execute (d:\NewDesktop\emberfall\Discord_Bot\node_modules\mysql2\lib\commands\command.js:29:26)
at Connection.handlePacket (d:\NewDesktop\emberfall\Discord_Bot\node_modules\mysql2\lib\connection.js:481:34)
at PacketParser.onPacket (d:\NewDesktop\emberfall\Discord_Bot\node_modules\mysql2\lib\connection.js:97:12)
at PacketParser.executeStart (d:\NewDesktop\emberfall\Discord_Bot\node_modules\mysql2\lib\packet_parser.js:75:16)
at Socket.<anonymous> (d:\NewDesktop\emberfall\Discord_Bot\node_modules\mysql2\lib\connection.js:104:25)
at Socket.emit (node:events:519:28)
at addChunk (node:internal/streams/readable:559:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
at Readable.push (node:internal/streams/readable:390:5) {
code: 'ER_BAD_FIELD_ERROR',
errno: 1054,
sqlState: '42S22',
sqlMessage: "Unknown column 'undefined' in 'field list'",
sql: 'INSERT INTO `ServerSettings` (`serverID`, `guildsCategory`) VALUES (1258174553117687908,undefined)'
}
* VVV
1259248381344354357
Error: Unknown column 'undefined' in 'field list'
at Packet.asError (d:\NewDesktop\emberfall\Discord_Bot\node_modules\mysql2\lib\packets\packet.js:728:17)
at Query.execute (d:\NewDesktop\emberfall\Discord_Bot\node_modules\mysql2\lib\commands\command.js:29:26)
at Connection.handlePacket (d:\NewDesktop\emberfall\Discord_Bot\node_modules\mysql2\lib\connection.js:481:34)
at PacketParser.onPacket (d:\NewDesktop\emberfall\Discord_Bot\node_modules\mysql2\lib\connection.js:97:12)
at PacketParser.executeStart (d:\NewDesktop\emberfall\Discord_Bot\node_modules\mysql2\lib\packet_parser.js:75:16)
at Socket.<anonymous> (d:\NewDesktop\emberfall\Discord_Bot\node_modules\mysql2\lib\connection.js:104:25)
at Socket.emit (node:events:519:28)
at addChunk (node:internal/streams/readable:559:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
at Readable.push (node:internal/streams/readable:390:5) {
code: 'ER_BAD_FIELD_ERROR',
errno: 1054,
sqlState: '42S22',
sqlMessage: "Unknown column 'undefined' in 'field list'",
sql: 'INSERT INTO `ServerSettings` (`serverID`, `guildsCategory`) VALUES (1258174553117687908,undefined)'
}
* VVV
1259248381344354357
10 replies
DIAdiscord.js - Imagine an app
Created by Mikey on 7/6/2024 in #djs-questions
channels.create().then() runs before the result is acquired
the result.id does give something from what it seems but it just says its undefined
10 replies
DIAdiscord.js - Imagine an app
Created by Mikey on 7/6/2024 in #djs-questions
channels.create().then() runs before the result is acquired
this error
Error: Unknown column 'undefined' in 'field list'
at Packet.asError (d:\NewDesktop\emberfall\Discord_Bot\node_modules\mysql2\lib\packets\packet.js:728:17)
at Query.execute (d:\NewDesktop\emberfall\Discord_Bot\node_modules\mysql2\lib\commands\command.js:29:26)
at Connection.handlePacket (d:\NewDesktop\emberfall\Discord_Bot\node_modules\mysql2\lib\connection.js:481:34)
at PacketParser.onPacket (d:\NewDesktop\emberfall\Discord_Bot\node_modules\mysql2\lib\connection.js:97:12)
at PacketParser.executeStart (d:\NewDesktop\emberfall\Discord_Bot\node_modules\mysql2\lib\packet_parser.js:75:16)
at Socket.<anonymous> (d:\NewDesktop\emberfall\Discord_Bot\node_modules\mysql2\lib\connection.js:104:25)
at Socket.emit (node:events:519:28)
at addChunk (node:internal/streams/readable:559:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
at Readable.push (node:internal/streams/readable:390:5) {
code: 'ER_BAD_FIELD_ERROR',
errno: 1054,
sqlState: '42S22',
sqlMessage: "Unknown column 'undefined' in 'field list'",
**notice how it says undefined VVV**
sql: 'INSERT INTO `ServerSettings` (`serverID`, `guildsCategory`) VALUES (1258174553117687908,undefined)'
}
Error: Unknown column 'undefined' in 'field list'
at Packet.asError (d:\NewDesktop\emberfall\Discord_Bot\node_modules\mysql2\lib\packets\packet.js:728:17)
at Query.execute (d:\NewDesktop\emberfall\Discord_Bot\node_modules\mysql2\lib\commands\command.js:29:26)
at Connection.handlePacket (d:\NewDesktop\emberfall\Discord_Bot\node_modules\mysql2\lib\connection.js:481:34)
at PacketParser.onPacket (d:\NewDesktop\emberfall\Discord_Bot\node_modules\mysql2\lib\connection.js:97:12)
at PacketParser.executeStart (d:\NewDesktop\emberfall\Discord_Bot\node_modules\mysql2\lib\packet_parser.js:75:16)
at Socket.<anonymous> (d:\NewDesktop\emberfall\Discord_Bot\node_modules\mysql2\lib\connection.js:104:25)
at Socket.emit (node:events:519:28)
at addChunk (node:internal/streams/readable:559:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
at Readable.push (node:internal/streams/readable:390:5) {
code: 'ER_BAD_FIELD_ERROR',
errno: 1054,
sqlState: '42S22',
sqlMessage: "Unknown column 'undefined' in 'field list'",
**notice how it says undefined VVV**
sql: 'INSERT INTO `ServerSettings` (`serverID`, `guildsCategory`) VALUES (1258174553117687908,undefined)'
}
10 replies
DIAdiscord.js - Imagine an app
Created by Mikey on 1/4/2024 in #djs-questions
Default commands get added for no reason?
works, ty
10 replies
DIAdiscord.js - Imagine an app
Created by Mikey on 1/4/2024 in #djs-questions
Default commands get added for no reason?
oh ok thank u so much
10 replies
DIAdiscord.js - Imagine an app
Created by Mikey on 1/4/2024 in #djs-questions
Default commands get added for no reason?
i used botghost at the start just to see what it is, but realised it isnt really what i wanted, i resetted the token tho.. is there anything else i need to reset before i run it? like is there an option to clear listed commands cache and such?
10 replies
DIAdiscord.js - Imagine an app
Created by Mikey on 1/4/2024 in #djs-questions
Default commands get added for no reason?
yea they are non functional, but i have no idea why they show up like that
10 replies