NyR
NyR
DIdiscord.js - Imagine ❄
Created by Shrewd 💫 on 12/26/2024 in #djs-questions
npx tsc error
Latest node types changed the iterators types...hence the error. There were some pr on DefinitelyTyped to address this, though it's status is kinda unknown
43 replies
DIdiscord.js - Imagine ❄
Created by Shrewd 💫 on 12/26/2024 in #djs-questions
npx tsc error
You may need to also install latest @types/node
43 replies
DIdiscord.js - Imagine ❄
Created by فيصل on 12/26/2024 in #djs-questions
Issue with Channel Filtering and Counting Logic
typo lol, yeah
33 replies
DIdiscord.js - Imagine ❄
Created by فيصل on 12/26/2024 in #djs-questions
Issue with Channel Filtering and Counting Logic
That's why we don't recommend duplicating listeners, it's easier to duplicate codes that way
33 replies
DIdiscord.js - Imagine ❄
Created by فيصل on 12/26/2024 in #djs-questions
Issue with Channel Filtering and Counting Logic
Line 535
const messageCount = (await db.get(`messageCount_${guildId}_${userId}`)) || 0;
await db.set(`messageCount_${guildId}_${userId}`, messageCount + 1);

const messageCount = (await db.get(`messageCount_${guildId}_${userId}`)) || 0;
await db.set(`messageCount_${guildId}_${userId}`, messageCount + 1);

You do increase the count without any checks in you second messageCreate listener
33 replies
DIdiscord.js - Imagine ❄
Created by فيصل on 12/26/2024 in #djs-questions
Issue with Channel Filtering and Counting Logic
Oh, right. Well got confused from the first code
33 replies
DIdiscord.js - Imagine ❄
Created by فيصل on 12/26/2024 in #djs-questions
Issue with Channel Filtering and Counting Logic
The code will execute if it doesn't include the channel
33 replies
DIdiscord.js - Imagine ❄
Created by فيصل on 12/26/2024 in #djs-questions
Issue with Channel Filtering and Counting Logic
Issue is !
33 replies
DIdiscord.js - Imagine ❄
Created by Alphamega on 12/25/2024 in #djs-questions
anyone know how to send an mp3 file as a voice message in chat, i tried message flags but doesn work
https://discord.com/channels/222078108977594368/1117069010694049812 You can read through this thread for solutions others have given, apart from this, we do have a pr for it. Though no idea when that will get implemented
6 replies
DIdiscord.js - Imagine ❄
Created by Xardass on 12/24/2024 in #djs-questions
White space or white message in an embed
That's with U+200B
7 replies
DIdiscord.js - Imagine ❄
Created by Xardass on 12/24/2024 in #djs-questions
White space or white message in an embed
No description
7 replies
DIdiscord.js - Imagine ❄
Created by Xardass on 12/24/2024 in #djs-questions
White space or white message in an embed
You could add new lines along with zero width space character
7 replies
DIdiscord.js - Imagine ❄
Created by Ypsilon on 12/23/2024 in #djs-questions
client.application.commands.permissions.set(), 401: Unauthorized
Yeah then without oauth2, you can't
14 replies
DIdiscord.js - Imagine ❄
Created by Ypsilon on 12/23/2024 in #djs-questions
client.application.commands.permissions.set(), 401: Unauthorized
Well you can add default_member_permissions for commands, but if you need to add channel/member level permission override. Then you'll have to go through oauth
14 replies
DIdiscord.js - Imagine ❄
Created by Szarvasi SZV-623 Cafe Brill on 12/23/2024 in #djs-questions
Application did not respond
it should be interaction.client
22 replies
DIdiscord.js - Imagine ❄
Created by Kermit on 12/21/2024 in #djs-questions
Collectors
What I like to do is use promise based collector in a function that recursively calls itself after completion of each step. Tracking what step the user is on (index) and having the data in an array to get the question for that index (step). You minus/add the index in case of skip/prev, so something like this
const data =[....];
async function something(index = 0) {
const d = data[index];
if (!d) return;
const int = await <Message>.awaitMessageComponents({....});

// do whatever you want to do with that, and if it passess
return something(index++)
// or subtract depending on what was selected
}
const data =[....];
async function something(index = 0) {
const d = data[index];
if (!d) return;
const int = await <Message>.awaitMessageComponents({....});

// do whatever you want to do with that, and if it passess
return something(index++)
// or subtract depending on what was selected
}
5 replies
DIdiscord.js - Imagine ❄
Created by IPEXA on 12/19/2024 in #djs-voice
Opus is missing node-gyp how to fix
seems like you do not have python installed
8 replies
DIdiscord.js - Imagine ❄
Created by IPEXA on 12/19/2024 in #djs-voice
Opus is missing node-gyp how to fix
No description
8 replies
DIdiscord.js - Imagine ❄
Created by Incorecc on 12/16/2024 in #djs-voice
Bot does not play any music, with no error message at all
Not sure if it's gonna help but try subscribing to the player first then play
6 replies
DIdiscord.js - Imagine ❄
Created by RLodka on 12/15/2024 in #djs-questions
How to import embeds from 1 file into 2 without creating embed in 2 file?
...
40 replies