notvexi
notvexi
Explore posts from servers
DIAdiscord.js - Imagine an app
Created by notvexi on 10/1/2024 in #djs-questions
Assistance in setting up makeCache and sweepers
thanks
15 replies
DIAdiscord.js - Imagine an app
Created by notvexi on 10/1/2024 in #djs-questions
Assistance in setting up makeCache and sweepers
also i am dumb but what is "Options.DefaultSweeperSettings" and "Options.DefaultMakeCacheSettings"? where can i see the values they pass
15 replies
DIAdiscord.js - Imagine an app
Created by notvexi on 10/1/2024 in #djs-questions
Assistance in setting up makeCache and sweepers
okay thanks a lot
15 replies
DIAdiscord.js - Imagine an app
Created by notvexi on 10/1/2024 in #djs-questions
Assistance in setting up makeCache and sweepers
xd
15 replies
DIAdiscord.js - Imagine an app
Created by notvexi on 10/1/2024 in #djs-questions
Assistance in setting up makeCache and sweepers
ye i noticed that also
15 replies
DIAdiscord.js - Imagine an app
Created by notvexi on 10/1/2024 in #djs-questions
Assistance in setting up makeCache and sweepers
so is this fine?
makeCache: Options.cacheWithLimits({
MessageManager: {
maxSize: 100,
keepOverLimit: (message) => message.author.id === this.user.id,
},
GuildMemberManager: {
maxSize: 150,
keepOverLimit: (member) => member.id === this.user.id || member.roles.cache.size > 0,
},
UserManager: {
maxSize: 100,
},
}),
messageCacheLifetime: 1000 * 60 * 20, // also is this a thing?
makeCache: Options.cacheWithLimits({
MessageManager: {
maxSize: 100,
keepOverLimit: (message) => message.author.id === this.user.id,
},
GuildMemberManager: {
maxSize: 150,
keepOverLimit: (member) => member.id === this.user.id || member.roles.cache.size > 0,
},
UserManager: {
maxSize: 100,
},
}),
messageCacheLifetime: 1000 * 60 * 20, // also is this a thing?
15 replies
DIAdiscord.js - Imagine an app
Created by notvexi on 10/1/2024 in #djs-questions
Assistance in setting up makeCache and sweepers
is what I use in my bot
15 replies
DIAdiscord.js - Imagine an app
Created by notvexi on 10/1/2024 in #djs-questions
Assistance in setting up makeCache and sweepers
- member.roles.cache.has(roleID) - guild.members.cache.get(userID) - bot.channels.cache.get(channelID) - channel.messages.cache.get(messageID) - bot.guilds.cache.size/forEach/other stuff - guild.channels.cache
15 replies
DIAdiscord.js - Imagine an app
Created by notvexi on 10/1/2024 in #djs-questions
Assistance in setting up makeCache and sweepers
and what about makeCache? Are there any things I can just remove like I dont need emoji caching if thats a default thing
15 replies
DIAdiscord.js - Imagine an app
Created by notvexi on 10/1/2024 in #djs-questions
Assistance in setting up makeCache and sweepers
ok ty
15 replies
DIAdiscord.js - Imagine an app
Created by Sulphur on 6/25/2023 in #djs-voice
How do I check who in the VC is talking?
can I use that to check if my bot itself is speaking?
12 replies
DIAdiscord.js - Imagine an app
Created by notvexi on 6/24/2023 in #djs-questions
messageCreate and database issues...
yes ik the reason. Anyways thank you and Jô for your help. Really apprecieate you guys
16 replies