Bobjoerules
Bobjoerules
DIAdiscord.js - Imagine an app
Created by Bobjoerules on 11/21/2023 in #djs-questions
Is there a way to detect when the server pfp image changes?
Yes thanks
6 replies
DIAdiscord.js - Imagine an app
Created by Bobjoerules on 11/13/2023 in #djs-questions
Why does .content not work when it is in the array?
Don't forget the need of GatewayIntentBits.MessageContent
20 replies
DIAdiscord.js - Imagine an app
Created by Bobjoerules on 11/13/2023 in #djs-questions
Why does .content not work when it is in the array?
but here is the updated code
if (interaction.commandName === 'clonechannel'){
if (!(interaction.user.id === '')) {
interaction.reply('Only the owner can use this broken command!')
return;
}
interaction.reply('What is the name you want to use?')
const filter = m => m.author.id === interaction.user.id
const newchannel = interaction.channel.clone()
.then(newchannel => {
const newChannelId = newchannel.id;
interaction.channel.awaitMessages({ filter, max: 1, time: 60000 })
.then(message => {
newName = message.first()
console.log('Cloned Channel ID:', newChannelId);
const guild = interaction.guild;
const clonedChannel = guild.channels.cache.get(newChannelId);
clonedChannel.setName(newName.content)
.catch(console.error);
interaction.channel.send('the channel has been cloned with the name of: ' + newName.content);
})
})
.catch(collected => {
interaction.channel.send('Timeout');
});
}
if (interaction.commandName === 'clonechannel'){
if (!(interaction.user.id === '')) {
interaction.reply('Only the owner can use this broken command!')
return;
}
interaction.reply('What is the name you want to use?')
const filter = m => m.author.id === interaction.user.id
const newchannel = interaction.channel.clone()
.then(newchannel => {
const newChannelId = newchannel.id;
interaction.channel.awaitMessages({ filter, max: 1, time: 60000 })
.then(message => {
newName = message.first()
console.log('Cloned Channel ID:', newChannelId);
const guild = interaction.guild;
const clonedChannel = guild.channels.cache.get(newChannelId);
clonedChannel.setName(newName.content)
.catch(console.error);
interaction.channel.send('the channel has been cloned with the name of: ' + newName.content);
})
})
.catch(collected => {
interaction.channel.send('Timeout');
});
}
This clones a channel and renames the cloned channel to what you want
20 replies
DIAdiscord.js - Imagine an app
Created by Bobjoerules on 11/13/2023 in #djs-questions
Why does .content not work when it is in the array?
nothing todo with the broken part
20 replies
DIAdiscord.js - Imagine an app
Created by Bobjoerules on 11/13/2023 in #djs-questions
Why does .content not work when it is in the array?
oh that was just something i put in
20 replies
DIAdiscord.js - Imagine an app
Created by Bobjoerules on 11/13/2023 in #djs-questions
Why does .content not work when it is in the array?
but for .content it does not
20 replies
DIAdiscord.js - Imagine an app
Created by Bobjoerules on 11/13/2023 in #djs-questions
Why does .content not work when it is in the array?
but then again when i put .channelId it shows the channel id
20 replies
DIAdiscord.js - Imagine an app
Created by Bobjoerules on 11/13/2023 in #djs-questions
Why does .content not work when it is in the array?
I dont think it has todo with the MESSAGECONTENT intent beacause it shows up while not using .content but does not show anything with
20 replies
DIAdiscord.js - Imagine an app
Created by Bobjoerules on 11/13/2023 in #djs-questions
Why does .content not work when it is in the array?
the .name for the catagory does not workj
20 replies
DIAdiscord.js - Imagine an app
Created by Bobjoerules on 11/13/2023 in #djs-questions
Why does .content not work when it is in the array?
No description
20 replies
DIAdiscord.js - Imagine an app
Created by Bobjoerules on 11/13/2023 in #djs-questions
Why does .content not work when it is in the array?
the .content and .name dont work but they show in the list if you dont put them
20 replies
DIAdiscord.js - Imagine an app
Created by Bobjoerules on 11/13/2023 in #djs-questions
Why does .content not work when it is in the array?
wait i did not show my code opps
20 replies
DIAdiscord.js - Imagine an app
Created by Bobjoerules on 11/13/2023 in #djs-questions
Why does .content not work when it is in the array?
the messages sent in the channel
20 replies
DIAdiscord.js - Imagine an app
Created by Bobjoerules on 11/13/2023 in #djs-questions
Why does .content not work when it is in the array?
newName = message.first() and i when i console log "newName" the content shows as "content: 'test'" but when i console log "newName .content" nothing happens
20 replies
DIAdiscord.js - Imagine an app
Created by Bobjoerules on 11/7/2023 in #djs-questions
check to see if new channel is a category or a text channel
It is this which i crorrected wrongly because i thought i said it wrong
8 replies
DIAdiscord.js - Imagine an app
Created by Bobjoerules on 11/7/2023 in #djs-questions
check to see if new channel is a category or a text channel
for catagory
8 replies
DIAdiscord.js - Imagine an app
Created by Bobjoerules on 11/7/2023 in #djs-questions
check to see if new channel is a category or a text channel
channel.type === 4
8 replies
DIAdiscord.js - Imagine an app
Created by Bobjoerules on 5/6/2023 in #djs-questions
Difference in server numbers
maybe, it's not that bad anyways
5 replies
DIAdiscord.js - Imagine an app
Created by Bobjoerules on 5/6/2023 in #djs-questions
Difference in server numbers
it has been like that for days
5 replies
DIAdiscord.js - Imagine an app
Created by Bobjoerules on 5/6/2023 in #djs-questions
Difference in server numbers
5 replies