JollyJohn
DIAdiscord.js - Imagine an app
•Created by JollyJohn on 9/23/2024 in #djs-questions
guildCreate not firing
const wlSchema = require('../../Schemas/serverwlSchema.js');
module.exports = {
name: "guildCreate",
async execute(guild, client) {
console.log(
I have joined a new server: ${guild.name} with the ID of ${guild.id}.
)
client.channels.cache.get('1287510923657089054').send(I have joined a new server: ${guild.name} with the ID of ${guild.id}.
)
try {
const wlguilds = await wlSchema.find().lean();
const guildids = wlguilds.map(guild => guild.guildId);
client.guilds.cache.forEach(async guild => {
if (!guildids.includes(guild.id)) {
await guild.leave();
}
})
} catch (error) {
console.error(Error leaving guild ${guild.id}:
, error);
}
}
}15 replies
DIAdiscord.js - Imagine an app
•Created by JollyJohn on 6/25/2024 in #djs-questions
role positions
8 replies
DIAdiscord.js - Imagine an app
•Created by JollyJohn on 6/25/2024 in #djs-questions
bannable
this line is not working, it is giving back true when its false or i just am just missing what is wrong
6 replies
DIAdiscord.js - Imagine an app
•Created by JollyJohn on 9/7/2023 in #djs-questions
bulk delete
I am using bulk delete and if there only 5 messages in the channel but I try to delete 100 it sends unkown message error as the other 95 messages its trying to delete arnt there as there are only 5 msgs
if the user wants it to delete 50 messages for example, but only 25 messages have been sent, itll throw the Unknown Message error another 25 times
3 replies
DIAdiscord.js - Imagine an app
•Created by JollyJohn on 6/1/2023 in #djs-questions
msg not sent to thread
the msg isnt being sent to the thread channel
2 replies
DIAdiscord.js - Imagine an app
•Created by JollyJohn on 5/4/2023 in #djs-questions
Autocomplete
Trying to use autocomplete to get youtuve videos from a channel
Package Docs: https://suspiciouslookingowl.github.io/youtubei/docs/youtube/classes/ChannelVideos
Code: https://pastebin.com/p9fZKpRP | https://pastebin.com/wW96WhXT
17 replies
DIAdiscord.js - Imagine an app
•Created by JollyJohn on 5/3/2023 in #djs-questions
autocomplete
how could i use autocomplete to get videos of a certain youtube channel
3 replies
DIAdiscord.js - Imagine an app
•Created by JollyJohn on 5/3/2023 in #djs-questions
thread create error
2 replies
DIAdiscord.js - Imagine an app
•Created by JollyJohn on 5/2/2023 in #djs-questions
bot doesnt add reaction
2 replies
DIAdiscord.js - Imagine an app
•Created by JollyJohn on 4/27/2023 in #djs-questions
does the message create event still trigger when a followed channel publishes something?
^
3 replies
DIAdiscord.js - Imagine an app
•Created by JollyJohn on 4/27/2023 in #djs-questions
bot spams
19 replies
DIAdiscord.js - Imagine an app
•Created by JollyJohn on 4/3/2023 in #djs-questions
GuildJoinEvent
I have my bot creating some database schemes when the bot is added to a server and then when it leaves, it will all delete, if the bot is offline when the bot leaves or joins a server, how could I ensure that the guild still gets the schemes and still deletes?
9 replies
DIAdiscord.js - Imagine an app
•Created by JollyJohn on 3/30/2023 in #djs-questions
how could I use autocomplete with mongodb
I got no clue where to start
7 replies
DIAdiscord.js - Imagine an app
•Created by JollyJohn on 3/30/2023 in #djs-questions
threadUpdate
Code:
Error:
What I Am Trying To Do:
I am trying to have the bot remove a certain tag if the post is re-opened.
16 replies
DIAdiscord.js - Imagine an app
•Created by JollyJohn on 3/29/2023 in #djs-questions
how to remove tag from thread?
^
18 replies
DIAdiscord.js - Imagine an app
•Created by JollyJohn on 3/28/2023 in #djs-questions
ThreadUpdate
i got this but message dont send if i send a message in a closed post making it active agian, using threadUpdate event. im trying to have it send the message if a closed thread is reopened
8 replies
DIAdiscord.js - Imagine an app
•Created by JollyJohn on 3/27/2023 in #djs-questions
how would i check if a certain post in a forum has a certain label and then close that post if it do
^
20 replies
DIAdiscord.js - Imagine an app
•Created by JollyJohn on 3/22/2023 in #djs-questions
Getting TextInput Value
https://pastebin.com/gcKrBWYA Line 191 and down is where I am having issues, it keeps saying fields is undefined, but I am not sure how I would define it, as if I use interaction it will tell me it has already replied
9 replies
DIAdiscord.js - Imagine an app
•Created by JollyJohn on 3/20/2023 in #djs-questions
Collector
11 replies