Poulette
Poulette
DIAdiscord.js - Imagine an app
Created by Poulette on 8/3/2023 in #djs-questions
Change TS type of Client
God I’m an idiot
6 replies
DIAdiscord.js - Imagine an app
Created by Poulette on 8/3/2023 in #djs-questions
Change TS type of Client
I'm confused though. The code I sent above is a snippet, my custom client actually does a lot more in the background. The issue I have is, say when an interaction is triggered I get the interaction. If I want to do interaction.client.commandCollection it works but eslint is not happy. How would I go about fixing that since it doesn't look like casting can do it ?
6 replies
DIAdiscord.js - Imagine an app
Created by Poulette on 8/3/2023 in #djs-questions
Change TS type of Client
For the any, I'm in the process of fixing those I'll have a look at those links, thanks
6 replies
DIAdiscord.js - Imagine an app
Created by Poulette on 5/13/2023 in #djs-questions
Asynchronous user fetching causing issues with embeds and buttons
it's really cool you should look into it
46 replies
DIAdiscord.js - Imagine an app
Created by Poulette on 5/13/2023 in #djs-questions
Asynchronous user fetching causing issues with embeds and buttons
const name = await interaction.guild?.members.fetch(helper)
row.addComponents(new ButtonBuilder({ customId: `${this.name}.${helper}`, label: `${name?.displayName}`, style: ButtonStyle.Success, emoji: `👍` }))
const name = await interaction.guild?.members.fetch(helper)
row.addComponents(new ButtonBuilder({ customId: `${this.name}.${helper}`, label: `${name?.displayName}`, style: ButtonStyle.Success, emoji: `👍` }))
46 replies
DIAdiscord.js - Imagine an app
Created by Poulette on 5/13/2023 in #djs-questions
Asynchronous user fetching causing issues with embeds and buttons
thanks guys I guess I tried eveything but that
46 replies
DIAdiscord.js - Imagine an app
Created by Poulette on 5/13/2023 in #djs-questions
Asynchronous user fetching causing issues with embeds and buttons
anyways it works now
46 replies
DIAdiscord.js - Imagine an app
Created by Poulette on 5/13/2023 in #djs-questions
Asynchronous user fetching causing issues with embeds and buttons
it's a complex stack I can't just run the bot
46 replies
DIAdiscord.js - Imagine an app
Created by Poulette on 5/13/2023 in #djs-questions
Asynchronous user fetching causing issues with embeds and buttons
I'm testing locally using docker
46 replies
DIAdiscord.js - Imagine an app
Created by Poulette on 5/13/2023 in #djs-questions
Asynchronous user fetching causing issues with embeds and buttons
and since it takes forever for docker to build the image I can only sit here and watch as my stupid code builds
46 replies
DIAdiscord.js - Imagine an app
Created by Poulette on 5/13/2023 in #djs-questions
Asynchronous user fetching causing issues with embeds and buttons
that's cause my brain is small and I used the wrong method
46 replies
DIAdiscord.js - Imagine an app
Created by Poulette on 5/13/2023 in #djs-questions
Asynchronous user fetching causing issues with embeds and buttons
yeah I checked all that
46 replies
DIAdiscord.js - Imagine an app
Created by Poulette on 5/13/2023 in #djs-questions
Asynchronous user fetching causing issues with embeds and buttons
oh that's cool
46 replies
DIAdiscord.js - Imagine an app
Created by Poulette on 5/13/2023 in #djs-questions
Asynchronous user fetching causing issues with embeds and buttons
I know the user is in the guild though, do they need to speak or smth to be added to the cache ?
46 replies
DIAdiscord.js - Imagine an app
Created by Poulette on 5/13/2023 in #djs-questions
Asynchronous user fetching causing issues with embeds and buttons
it shouldn't be undefined though
46 replies
DIAdiscord.js - Imagine an app
Created by Poulette on 5/13/2023 in #djs-questions
Asynchronous user fetching causing issues with embeds and buttons
ah fuk wrong methods
46 replies
DIAdiscord.js - Imagine an app
Created by Poulette on 5/13/2023 in #djs-questions
Asynchronous user fetching causing issues with embeds and buttons
and it's undefined
46 replies
DIAdiscord.js - Imagine an app
Created by Poulette on 5/13/2023 in #djs-questions
Asynchronous user fetching causing issues with embeds and buttons
I've changed the var names so it's not as weird
const name = interaction.guild?.members.cache.get(helper)?.displayName
row.addComponents(new ButtonBuilder({ customId: `${this.name}.${helper}`, label: `${name}`, style: ButtonStyle.Success, emoji: `👍` }))
const name = interaction.guild?.members.cache.get(helper)?.displayName
row.addComponents(new ButtonBuilder({ customId: `${this.name}.${helper}`, label: `${name}`, style: ButtonStyle.Success, emoji: `👍` }))
46 replies
DIAdiscord.js - Imagine an app
Created by Poulette on 5/13/2023 in #djs-questions
Asynchronous user fetching causing issues with embeds and buttons
nice bot btw
46 replies
DIAdiscord.js - Imagine an app
Created by Poulette on 5/13/2023 in #djs-questions
Asynchronous user fetching causing issues with embeds and buttons
I see
46 replies