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
DIAdiscord.js - Imagine an app
Created by notvexi on 11/5/2022 in #djs-questions
DiscordAPIError[50035] Invalid Form Body - but WHERE
thank you so much
15 replies
DIAdiscord.js - Imagine an app
Created by notvexi on 11/5/2022 in #djs-questions
DiscordAPIError[50035] Invalid Form Body - but WHERE
I hate typos
15 replies
DIAdiscord.js - Imagine an app
Created by notvexi on 11/5/2022 in #djs-questions
DiscordAPIError[50035] Invalid Form Body - but WHERE
I updated the send attachment to be in an options object
15 replies
DIAdiscord.js - Imagine an app
Created by notvexi on 11/5/2022 in #djs-questions
DiscordAPIError[50035] Invalid Form Body - but WHERE
Trace: TypeError: createdChannel.send is not a function
Trace: TypeError: createdChannel.send is not a function
15 replies
DIAdiscord.js - Imagine an app
Created by notvexi on 11/5/2022 in #djs-questions
DiscordAPIError[50035] Invalid Form Body - but WHERE
line 143
15 replies
DIAdiscord.js - Imagine an app
Created by notvexi on 11/5/2022 in #djs-questions
DiscordAPIError[50035] Invalid Form Body - but WHERE
ok so i fixed the channel creation stuff. now why wont it send a message in it after the creation? It worked before lol
15 replies
DIAdiscord.js - Imagine an app
Created by notvexi on 11/5/2022 in #djs-questions
DiscordAPIError[50035] Invalid Form Body - but WHERE
ok thank you!
15 replies
DIAdiscord.js - Imagine an app
Created by notvexi on 11/5/2022 in #djs-questions
DiscordAPIError[50035] Invalid Form Body - but WHERE
line 89 I create the channel
15 replies