Perodix__
Perodix__
DIAdiscord.js - Imagine an app
Created by Lumi on 8/26/2024 in #djs-questions
Sharding retrieve guild data
Am sry HAHAHA wrong thread
45 replies
DIAdiscord.js - Imagine an app
Created by Lumi on 8/26/2024 in #djs-questions
Sharding retrieve guild data
const { Events } = require('discord.js');


module.exports = {
name: Events.GuildUpdate,
async execute(Guild, client, member) {

let vanity = await Guild.fetchVanityData();

if (!Guild.features.includes('VANITY_URL'))
{
console.log('Ovaj server nema omogućenu opciju za vanity URL.');
return;
}
console.log(vanity.code)

if(vanity.code == 'rejva')
{
return;
}
else {

let simke = Guild.client.users.fetch('673220464042049562');

simke.send("PEDERU JEDAN")

// channel.send("ALO")
// member.ban("")
}

},
};
const { Events } = require('discord.js');


module.exports = {
name: Events.GuildUpdate,
async execute(Guild, client, member) {

let vanity = await Guild.fetchVanityData();

if (!Guild.features.includes('VANITY_URL'))
{
console.log('Ovaj server nema omogućenu opciju za vanity URL.');
return;
}
console.log(vanity.code)

if(vanity.code == 'rejva')
{
return;
}
else {

let simke = Guild.client.users.fetch('673220464042049562');

simke.send("PEDERU JEDAN")

// channel.send("ALO")
// member.ban("")
}

},
};
is this right way to get user id ? I want to notify user via dm message but is don't work
45 replies
DIAdiscord.js - Imagine an app
Created by Perodix__ on 12/10/2023 in #djs-questions
Help about looping
I'm expect to bot just automaticlly start new game.To automaticlly edit existing message with new image to guess and add answerse to choose
3 replies
DIAdiscord.js - Imagine an app
Created by Perodix__ on 11/26/2022 in #djs-questions
Help about music bot
🙂
13 replies
DIAdiscord.js - Imagine an app
Created by Perodix__ on 11/26/2022 in #djs-questions
Help about music bot
i found solution tnxx
13 replies
DIAdiscord.js - Imagine an app
Created by Perodix__ on 11/26/2022 in #djs-questions
Help about music bot
🙂
13 replies
DIAdiscord.js - Imagine an app
Created by Perodix__ on 11/26/2022 in #djs-questions
Help about music bot
yes but myb you k
13 replies
DIAdiscord.js - Imagine an app
Created by Perodix__ on 11/26/2022 in #djs-questions
Help about music bot
AUTO Automatic
13 replies
DIAdiscord.js - Imagine an app
Created by Perodix__ on 11/26/2022 in #djs-questions
Help about music bot
Idk haha,but ig is like
13 replies
DIAdiscord.js - Imagine an app
Created by Perodix__ on 11/26/2022 in #djs-questions
Help about music bot
What this do
searchEngine: QueryType.AUTO
searchEngine: QueryType.AUTO
13 replies
DIAdiscord.js - Imagine an app
Created by Perodix__ on 11/26/2022 in #djs-questions
Help about music bot
myb you better understand how it works
13 replies
DIAdiscord.js - Imagine an app
Created by Perodix__ on 11/26/2022 in #djs-questions
Help about music bot
Yes try to look at code
13 replies
DIAdiscord.js - Imagine an app
Created by Perodix__ on 11/26/2022 in #djs-questions
Help about music bot
if(interaction.options.getSubcommand() === "song") {
let url = interaction.options.getString("url")
const result = await client.player.search(url, {
requestedBy: interaction.user,
searchEngine: QueryType.AUTO
})
if (result.tracks.length === 0)
return interaction.editReply("No results")

const song = result.tracks[0]
await queue.addTrack(song)
embed
.setDescription(`**[${song.title}](${song.url})** has been added to the Queue`)
.setThumbnail(song.thumbnail)
.setFooter({ text: `Duration: ${song.duration}`})
if(interaction.options.getSubcommand() === "song") {
let url = interaction.options.getString("url")
const result = await client.player.search(url, {
requestedBy: interaction.user,
searchEngine: QueryType.AUTO
})
if (result.tracks.length === 0)
return interaction.editReply("No results")

const song = result.tracks[0]
await queue.addTrack(song)
embed
.setDescription(`**[${song.title}](${song.url})** has been added to the Queue`)
.setThumbnail(song.thumbnail)
.setFooter({ text: `Duration: ${song.duration}`})
13 replies