Frank
DIAdiscord.js - Imagine an app
•Created by Frank on 5/13/2024 in #djs-questions
ClientUser banner is undefined when force fetching on ready
btw, is there anyway i can keep updated or is it a case of keeping my eye out in #discord.js (discord.js)?
71 replies
DIAdiscord.js - Imagine an app
•Created by Frank on 5/13/2024 in #djs-questions
ClientUser banner is undefined when force fetching on ready
sounds good, atleast we (you) have been able to find the issue because this has been driving me crazy all day
for now, i think i should fetch the client after initially purging the leaderboard channels, then using lastMessage to delete the posts
71 replies
DIAdiscord.js - Imagine an app
•Created by Frank on 5/13/2024 in #djs-questions
ClientUser banner is undefined when force fetching on ready
would this be considered a 'bug'?
71 replies
DIAdiscord.js - Imagine an app
•Created by Frank on 5/13/2024 in #djs-questions
ClientUser banner is undefined when force fetching on ready
ah, i thought it would fetch them but i wasn't sure
71 replies
DIAdiscord.js - Imagine an app
•Created by Frank on 5/13/2024 in #djs-questions
ClientUser banner is undefined when force fetching on ready
changing to
channel.lastMessage?.delete()
works, however in some cases, there might
- A. not be a last message at all
- B. there may be more than just the last message (i want to clear the entire channel)
update.. it isn't a solution because lastMessage is null (not cached) and i can not fetch it because of this issue 🤦♂️71 replies
DIAdiscord.js - Imagine an app
•Created by Frank on 5/13/2024 in #djs-questions
ClientUser banner is undefined when force fetching on ready
however, when i comment out the bulkDelete method in the leaderboard class, it doesn't go null :Thonk:
71 replies
DIAdiscord.js - Imagine an app
•Created by Frank on 5/13/2024 in #djs-questions
ClientUser banner is undefined when force fetching on ready
but didnt go null
71 replies
DIAdiscord.js - Imagine an app
•Created by Frank on 5/13/2024 in #djs-questions
ClientUser banner is undefined when force fetching on ready
i tried bulk deleting with eval and in my ready function
71 replies
DIAdiscord.js - Imagine an app
•Created by Frank on 5/13/2024 in #djs-questions
ClientUser banner is undefined when force fetching on ready
it only goes null when i bulkDelete in my leaderboard class
71 replies
DIAdiscord.js - Imagine an app
•Created by Frank on 5/13/2024 in #djs-questions
ClientUser banner is undefined when force fetching on ready
but if i dont fetch a message?
71 replies
DIAdiscord.js - Imagine an app
•Created by Frank on 5/13/2024 in #djs-questions
ClientUser banner is undefined when force fetching on ready
i tried bulk deleting in ready and using eval to bulk delete whilst keeping the leaderboard commented out and i cant seem to replicate this... im not sure whats happening but its to do with my leaderboard class i think
71 replies
DIAdiscord.js - Imagine an app
•Created by Frank on 5/13/2024 in #djs-questions
ClientUser banner is undefined when force fetching on ready
none
71 replies
DIAdiscord.js - Imagine an app
•Created by Frank on 5/13/2024 in #djs-questions
ClientUser banner is undefined when force fetching on ready
i originally had this timeout in my ready event but i removed it and dumped it in my client so i didnt forget it (i could've just commented in my ready but it was 'clogging' it up when looking at it and i forgot to comment it in my main file)
when i comment it out, banner remains as it should be however i look to reimplement this feature as i was only temporarily removing it
71 replies
DIAdiscord.js - Imagine an app
•Created by Frank on 5/13/2024 in #djs-questions
ClientUser banner is undefined when force fetching on ready
correct
71 replies
DIAdiscord.js - Imagine an app
•Created by Frank on 5/13/2024 in #djs-questions
ClientUser banner is undefined when force fetching on ready
@Qjuh this is my leaderboard code which i run on a timeout in my main file
71 replies
DIAdiscord.js - Imagine an app
•Created by Frank on 5/13/2024 in #djs-questions
ClientUser banner is undefined when force fetching on ready
seems to be once message delete is emitted
71 replies
DIAdiscord.js - Imagine an app
•Created by Frank on 5/13/2024 in #djs-questions
ClientUser banner is undefined when force fetching on ready
71 replies
DIAdiscord.js - Imagine an app
•Created by Frank on 5/13/2024 in #djs-questions
ClientUser banner is undefined when force fetching on ready
im not sure why message create and delete are even emitting
71 replies
DIAdiscord.js - Imagine an app
•Created by Frank on 5/13/2024 in #djs-questions
ClientUser banner is undefined when force fetching on ready
71 replies
DIAdiscord.js - Imagine an app
•Created by Frank on 5/13/2024 in #djs-questions
ClientUser banner is undefined when force fetching on ready
still null
71 replies