NyR
DIAdiscord.js - Imagine an app
•Created by Apokalypt on 7/4/2024 in #djs-questions
My bot seems to not received the event "interactionCreate" from button sent in DM
Idk, that could be the case, haven't encountered this specific situation myself to say for sure. But thinking rationally, if that were the case, buttons sent by user apps wouldn't work either, though there could be a different scenarios for it. Again, this is me just guessing though, i can't say for sure
11 replies
DIAdiscord.js - Imagine an app
•Created by Apokalypt on 7/4/2024 in #djs-questions
My bot seems to not received the event "interactionCreate" from button sent in DM
If they don't share a common server, you wouldn't be able to send a message in the first place
11 replies
DIAdiscord.js - Imagine an app
•Created by Apokalypt on 7/4/2024 in #djs-questions
My bot seems to not received the event "interactionCreate" from button sent in DM
Intents shouldn't matter with interactions, because it requires none. Idk what could be the issue other than perhaps the listener not being created ig? Where do you create the listener?
11 replies
DIAdiscord.js - Imagine an app
•Created by Apokalypt on 7/4/2024 in #djs-questions
My bot seems to not received the event "interactionCreate" from button sent in DM
I'm not sure if this affects interactions, but try enabling
Channel
partial (also you are only listening it to it once
, idk if that was intentional)11 replies
DIAdiscord.js - Imagine an app
•Created by IcyPickle on 7/1/2024 in #djs-questions
how do you fetch all messages created after a specific date?
^ 2nd part of this message still applies
52 replies
DIAdiscord.js - Imagine an app
•Created by IcyPickle on 7/1/2024 in #djs-questions
how do you fetch all messages created after a specific date?
You don't have to show everything, just the part/fuction related to the error
52 replies
DIAdiscord.js - Imagine an app
•Created by IcyPickle on 7/1/2024 in #djs-questions
how do you fetch all messages created after a specific date?
Show your full code, not all channel types have
messages
property (like Category channels), you'll have to filter those out52 replies
DIAdiscord.js - Imagine an app
•Created by IcyPickle on 7/1/2024 in #djs-questions
how do you fetch all messages created after a specific date?
I'm asking why? Just pointing it won't help, just because you want to do something doesn't mean you should
52 replies
DIAdiscord.js - Imagine an app
•Created by IcyPickle on 7/1/2024 in #djs-questions
how do you fetch all messages created after a specific date?
Why do you need to fetch messages from each channel?
52 replies
DIAdiscord.js - Imagine an app
•Created by IcyPickle on 7/1/2024 in #djs-questions
how do you fetch all messages created after a specific date?
On a closer look, what you are trying to do seems to be API spammy
52 replies
DIAdiscord.js - Imagine an app
•Created by IcyPickle on 7/1/2024 in #djs-questions
how do you fetch all messages created after a specific date?
You can do something like
52 replies
DIAdiscord.js - Imagine an app
•Created by IcyPickle on 7/1/2024 in #djs-questions
how do you fetch all messages created after a specific date?
Read the first point
52 replies
DIAdiscord.js - Imagine an app
•Created by IcyPickle on 7/1/2024 in #djs-questions
how do you fetch all messages created after a specific date?
Ok i see, you need to convert Collection to iterables
52 replies
DIAdiscord.js - Imagine an app
•Created by IcyPickle on 7/1/2024 in #djs-questions
how do you fetch all messages created after a specific date?
Also no need to fetch channels, it's all cached with Guilds intent
52 replies
DIAdiscord.js - Imagine an app
•Created by IcyPickle on 7/1/2024 in #djs-questions
how do you fetch all messages created after a specific date?
Just so you know, snowflake should be a string there in
after
so do timestamp.toString()
also, please show your error52 replies
DIAdiscord.js - Imagine an app
•Created by IcyPickle on 7/1/2024 in #djs-questions
how do you fetch all messages created after a specific date?
The
id
here for after
is just a snowflake, you can construct one for a specific Date/time by using SnowflakeUtil
and pass that52 replies
DIAdiscord.js - Imagine an app
•Created by Guleb on 6/26/2024 in #djs-questions
Unexpected behavior of client.on(Events.VoiceStateUpdate)
Can you log
<State>.constructor.name
for both oldState
and newState
?7 replies
DIAdiscord.js - Imagine an app
•Created by Dante on 6/25/2024 in #djs-questions
DiscordAPIerror: Missing Access
Reply to the interaction, interaction's reply isn't bound by channel (view) permission (unless it's
Use Application Command
)15 replies
DIAdiscord.js - Imagine an app
•Created by Dante on 6/25/2024 in #djs-questions
DiscordAPIerror: Missing Access
Or get bot's member by using
fethMe()
if me
is null15 replies
DIAdiscord.js - Imagine an app
•Created by Dante on 6/25/2024 in #djs-questions
DiscordAPIerror: Missing Access
Why are you checking for everyone role? That doesn't necessarily rules out your bot? Check for you bot's member, use
interaction.guild.members.me
15 replies