Catharsis
Catharsis
DIAdiscord.js - Imagine an app
Created by Catharsis on 1/26/2024 in #djs-questions
MODULE_NOT_FOUND
I think I fixed it. I don't know if it's true or not, but when I remove the node_modules dir and the package-lock.json file, and I try to reinstall all dependencies by running the npm i command, and I don't know how, but suddenly the bot can run. 🤷
8 replies
DIAdiscord.js - Imagine an app
Created by Catharsis on 1/26/2024 in #djs-questions
MODULE_NOT_FOUND
Is this wrong?
8 replies
DIAdiscord.js - Imagine an app
Created by Catharsis on 1/26/2024 in #djs-questions
MODULE_NOT_FOUND
So, after I remove the node_modules dir, I just simply run npm i.
8 replies
DIAdiscord.js - Imagine an app
Created by Catharsis on 1/26/2024 in #djs-questions
MODULE_NOT_FOUND
Well, I simply run the npm i or npm install to reinstall all dependencies. Did I do something wrong?
8 replies
DIAdiscord.js - Imagine an app
Created by Catharsis on 1/26/2024 in #djs-questions
MODULE_NOT_FOUND
here's the output:
[email protected] <workspace-path>\shaii-classic
├─┬ @discordjs/[email protected]
└── @vladfrangu/[email protected]
└─┬ @discordjs/[email protected]
└── @vladfrangu/[email protected] deduped
[email protected] <workspace-path>\shaii-classic
├─┬ @discordjs/[email protected]
└── @vladfrangu/[email protected]
└─┬ @discordjs/[email protected]
└── @vladfrangu/[email protected] deduped
8 replies
DIAdiscord.js - Imagine an app
Created by Catharsis on 1/26/2024 in #djs-questions
MODULE_NOT_FOUND
okay, i'll try
8 replies
DIAdiscord.js - Imagine an app
Created by Catharsis on 2/28/2023 in #djs-questions
Cannot read properties of undefined (reading 'reply')
thank you very much!
4 replies
DIAdiscord.js - Imagine an app
Created by Catharsis on 11/7/2022 in #djs-voice
A function that can show bot ping connection (Voice Channel)
thank you everyone. i appreciate all the helps. i might try to learn more about it. @papiophidian @qjuh @shadow024
18 replies
DIAdiscord.js - Imagine an app
Created by Catharsis on 11/7/2022 in #djs-voice
A function that can show bot ping connection (Voice Channel)
const { VoiceConnection } = require('@discordjs/voice')
const Discord = require('discord.js')

module.exports = {
name: 'latency',
run: async (client, message) => {
message.reply({
embeds: [
new Discord.EmbedBuilder()
.setColor('#ec9bbb')
.setTitle(`${client.emotes.info} | Latency`)
.addFields(
{ name: 'Websocket Latency', value: `${Math.round(client.ws.ping)} ms` },
{ name: 'API Latency', value: `${Date.now() - message.createdTimestamp} ms` },
{ name: 'Voice Ping Connection (Test)', value: `${VoiceConnection.client.ping.ws} ms` }
)
.setTimestamp()
]
})
}
}
const { VoiceConnection } = require('@discordjs/voice')
const Discord = require('discord.js')

module.exports = {
name: 'latency',
run: async (client, message) => {
message.reply({
embeds: [
new Discord.EmbedBuilder()
.setColor('#ec9bbb')
.setTitle(`${client.emotes.info} | Latency`)
.addFields(
{ name: 'Websocket Latency', value: `${Math.round(client.ws.ping)} ms` },
{ name: 'API Latency', value: `${Date.now() - message.createdTimestamp} ms` },
{ name: 'Voice Ping Connection (Test)', value: `${VoiceConnection.client.ping.ws} ms` }
)
.setTimestamp()
]
})
}
}
Any idea to fix it?
18 replies
DIAdiscord.js - Imagine an app
Created by Catharsis on 11/7/2022 in #djs-voice
A function that can show bot ping connection (Voice Channel)
18 replies