dainis
dainis
Explore posts from servers
DIAdiscord.js - Imagine an app
Created by dainis on 10/30/2024 in #djs-questions
A collector that collects messages from a predetermined channel
No, I wanted for it to get every message in all channels and log them in the console, but my end goal for all this turned out to be impossible to achieve seemingly so I'll mark this thread as closed
4 replies
DIAdiscord.js - Imagine an app
Created by dainis on 10/30/2024 in #djs-questions
A collector that collects messages from a predetermined channel
Started refreshing 3 application (/) commands.
Successfully reloaded 3 application (/) commands.
4 | name: Events.ClientReady,
5 | once: false,
6 | execute(client) {
7 | const channel = client.channels.fetch("1221529963761500160");
8 |
9 | const collector = channel.createMessageCollector({
^
TypeError: client.channels.fetch("1221529963761500160").createMessageCollector is not a function. (In 'client.channels.fetch("1221529963761500160").createMessageCollector({
time: 15000
})', 'client.channels.fetch("1221529963761500160").createMessageCollector' is undefined)
at execute (/home/dainis/bot/events/sim.js:9:31)
at /home/dainis/bot/index.ts:41:46
at emit2 (node:events:79:45)
at triggerClientReady (/home/dainis/bot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:381:17)
at checkShardsReady (/home/dainis/bot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:364:10)
at /home/dainis/bot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:194:16
at emit (node:events:48:48)
at checkReady (/home/dainis/bot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:184:12)
at gotGuild (/home/dainis/bot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:158:10)
at /home/dainis/bot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:234:15

Bun v1.1.31 (Linux x64)
Started refreshing 3 application (/) commands.
Successfully reloaded 3 application (/) commands.
4 | name: Events.ClientReady,
5 | once: false,
6 | execute(client) {
7 | const channel = client.channels.fetch("1221529963761500160");
8 |
9 | const collector = channel.createMessageCollector({
^
TypeError: client.channels.fetch("1221529963761500160").createMessageCollector is not a function. (In 'client.channels.fetch("1221529963761500160").createMessageCollector({
time: 15000
})', 'client.channels.fetch("1221529963761500160").createMessageCollector' is undefined)
at execute (/home/dainis/bot/events/sim.js:9:31)
at /home/dainis/bot/index.ts:41:46
at emit2 (node:events:79:45)
at triggerClientReady (/home/dainis/bot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:381:17)
at checkShardsReady (/home/dainis/bot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:364:10)
at /home/dainis/bot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:194:16
at emit (node:events:48:48)
at checkReady (/home/dainis/bot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:184:12)
at gotGuild (/home/dainis/bot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:158:10)
at /home/dainis/bot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:234:15

Bun v1.1.31 (Linux x64)
4 replies
DIAdiscord.js - Imagine an app
Created by dainis on 8/22/2024 in #djs-questions
Can't run the guide lightly modified bot
I hope discordjs had similair functionality as I dislike pay and I know js better
64 replies
DIAdiscord.js - Imagine an app
Created by dainis on 8/22/2024 in #djs-questions
Can't run the guide lightly modified bot
My discord py bot has like 500 lines of code and I had no issues whatsoever
64 replies
DIAdiscord.js - Imagine an app
Created by dainis on 8/22/2024 in #djs-questions
Can't run the guide lightly modified bot
like commands and everything everything in a single file
64 replies
DIAdiscord.js - Imagine an app
Created by dainis on 8/22/2024 in #djs-questions
Can't run the guide lightly modified bot
like you can do with discord.py
64 replies
DIAdiscord.js - Imagine an app
Created by dainis on 8/22/2024 in #djs-questions
Can't run the guide lightly modified bot
despite it being messy is it just not possible to cram everything that the bot needs into a single file
64 replies
DIAdiscord.js - Imagine an app
Created by dainis on 8/22/2024 in #djs-questions
Can't run the guide lightly modified bot
Don't get me wrong, I've read it
64 replies
DIAdiscord.js - Imagine an app
Created by dainis on 8/22/2024 in #djs-questions
Can't run the guide lightly modified bot
I'm pretty sure I cloned the example directory
64 replies
DIAdiscord.js - Imagine an app
Created by dainis on 8/22/2024 in #djs-questions
Can't run the guide lightly modified bot
I just did whatever it told me to do in the guide if I recall correctly
64 replies
DIAdiscord.js - Imagine an app
Created by dainis on 8/22/2024 in #djs-questions
Can't run the guide lightly modified bot
Do I just module.exports = { execute }?
64 replies
DIAdiscord.js - Imagine an app
Created by dainis on 8/22/2024 in #djs-questions
Can't run the guide lightly modified bot
How do I even define it when the execute is in another file?
64 replies
DIAdiscord.js - Imagine an app
Created by dainis on 8/22/2024 in #djs-questions
Can't run the guide lightly modified bot
But I never had to do anything this advanced
64 replies
DIAdiscord.js - Imagine an app
Created by dainis on 8/22/2024 in #djs-questions
Can't run the guide lightly modified bot
I did use nodejs a bit in the past
64 replies
DIAdiscord.js - Imagine an app
Created by dainis on 8/22/2024 in #djs-questions
Can't run the guide lightly modified bot
info and user that is
64 replies
DIAdiscord.js - Imagine an app
Created by dainis on 8/22/2024 in #djs-questions
Can't run the guide lightly modified bot
as far as i understand the file i gave you is the command and the other files i made are subcommands
64 replies
DIAdiscord.js - Imagine an app
Created by dainis on 8/22/2024 in #djs-questions
Can't run the guide lightly modified bot
64 replies
DIAdiscord.js - Imagine an app
Created by dainis on 8/22/2024 in #djs-questions
Can't run the guide lightly modified bot
I'm pretty sure my execute function is in an another file
64 replies
BROBattleBit Remastered Official
Created by dainis on 4/27/2024 in #help-support
Anyone else having issues launching the game on GNU/Linux?
seems to be working, i booted into the main menu
35 replies
BROBattleBit Remastered Official
Created by dainis on 4/27/2024 in #help-support
Anyone else having issues launching the game on GNU/Linux?
must be a wine thing
35 replies