Melio
Melio
DIAdiscord.js - Imagine a boo! 👻
Created by Aiwoz on 10/30/2023 in #djs-questions
Audit Logs : VoiceStatUpdates
yes
13 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Aiwoz on 10/30/2023 in #djs-questions
Audit Logs : VoiceStatUpdates
so check if executor or not
13 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Aiwoz on 10/30/2023 in #djs-questions
Audit Logs : VoiceStatUpdates
MemberDisconnected = MemberLeave the AudioLogEntry
13 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Melio on 10/30/2023 in #djs-questions
node:internal/process/promises:288 triggerUncaughtException(err, true /* fromPromise */)
what i have to do ?
5 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Aiwoz on 10/30/2023 in #djs-questions
Audit Logs : VoiceStatUpdates
https://discordjs.guide/popular-topics/audit-logs.html#who-deleted-a-message Same code,
const { AuditLogEvent, Events } = require('discord.js');

client.on(Events.GuildAuditLogEntryCreate, async auditLog => {
// Define your variables.
// The extra information here will be the channel.
const { action, extra: channel, executorId, targetId } = auditLog;

// Check only for deleted messages.
if (action !== AuditLogEvent.MemberDisconnect) return;

// Ensure the executor is cached.
const executor = await client.users.fetch(executorId);

// Ensure the author whose message was deleted is cached.
const target = await client.users.fetch(targetId);

// Log the output.
console.log(`member disconnected from ${channel}.`);
});
const { AuditLogEvent, Events } = require('discord.js');

client.on(Events.GuildAuditLogEntryCreate, async auditLog => {
// Define your variables.
// The extra information here will be the channel.
const { action, extra: channel, executorId, targetId } = auditLog;

// Check only for deleted messages.
if (action !== AuditLogEvent.MemberDisconnect) return;

// Ensure the executor is cached.
const executor = await client.users.fetch(executorId);

// Ensure the author whose message was deleted is cached.
const target = await client.users.fetch(targetId);

// Log the output.
console.log(`member disconnected from ${channel}.`);
});
13 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Aiwoz on 10/30/2023 in #djs-questions
Audit Logs : VoiceStatUpdates
@Aiwoz
13 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Aiwoz on 10/30/2023 in #djs-questions
Audit Logs : VoiceStatUpdates
AuditLogEvent.MemberDisconnect
13 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Aiwoz on 10/30/2023 in #djs-questions
Audit Logs : VoiceStatUpdates
Bad type 🙂
13 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Melio on 10/25/2023 in #djs-questions
Issue: Cant update my button, after a change the embed with message.awaitMessageComponent
bc im idiot
16 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Melio on 10/25/2023 in #djs-questions
Issue: Cant update my button, after a change the embed with message.awaitMessageComponent
(if yes, i arldy do that before, and i m just idiot)
16 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Melio on 10/25/2023 in #djs-questions
Issue: Cant update my button, after a change the embed with message.awaitMessageComponent
like that ?
16 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Melio on 10/25/2023 in #djs-questions
Issue: Cant update my button, after a change the embed with message.awaitMessageComponent
try {
const Collector = await message.createMessageComponentCollector({ componentType: ComponentType.Button, filter: CollectorFilter, time: 60000 })
Collector.on('collect', async (interaction) => {
await interaction.deferUpdate()
Collector.collected.forEach(async (Collector) => {
if (Collector.customId === 'guild') {
returnButton.setDisabled(false)
guildButton.setDisabled(true)
// @ts-ignore
await interaction.editReply({ embeds: [guildembed], components: [row] })
} else if (Collector.customId === 'return') {
returnButton.setDisabled(true)
guildButton.setDisabled(false)

// @ts-ignore
await interaction.editReply({ embeds: [embed], components: [row] })
}
}
)
})



} catch (error) {
await interaction.deleteReply()
}
try {
const Collector = await message.createMessageComponentCollector({ componentType: ComponentType.Button, filter: CollectorFilter, time: 60000 })
Collector.on('collect', async (interaction) => {
await interaction.deferUpdate()
Collector.collected.forEach(async (Collector) => {
if (Collector.customId === 'guild') {
returnButton.setDisabled(false)
guildButton.setDisabled(true)
// @ts-ignore
await interaction.editReply({ embeds: [guildembed], components: [row] })
} else if (Collector.customId === 'return') {
returnButton.setDisabled(true)
guildButton.setDisabled(false)

// @ts-ignore
await interaction.editReply({ embeds: [embed], components: [row] })
}
}
)
})



} catch (error) {
await interaction.deleteReply()
}
16 replies
DIAdiscord.js - Imagine a boo! 👻
Created by Melio on 10/25/2023 in #djs-questions
Issue: Cant update my button, after a change the embed with message.awaitMessageComponent
oh
16 replies
DIAdiscord.js - Imagine a boo! 👻
Created by xmnlz on 10/25/2023 in #djs-questions
Im trying to set permission for 10-12 users
ohh cool!
19 replies
DIAdiscord.js - Imagine a boo! 👻
Created by xmnlz on 10/25/2023 in #djs-questions
Im trying to set permission for 10-12 users
like const event... = [...]
19 replies
DIAdiscord.js - Imagine a boo! 👻
Created by xmnlz on 10/25/2023 in #djs-questions
Im trying to set permission for 10-12 users
the eventVoiceChannel import 🙂
19 replies
DIAdiscord.js - Imagine a boo! 👻
Created by xmnlz on 10/25/2023 in #djs-questions
Im trying to set permission for 10-12 users
No description
19 replies
DIAdiscord.js - Imagine a boo! 👻
Created by xmnlz on 10/25/2023 in #djs-questions
Im trying to set permission for 10-12 users
ts importation error
19 replies
DIAdiscord.js - Imagine a boo! 👻
Created by xmnlz on 10/25/2023 in #djs-questions
Im trying to set permission for 10-12 users
send me the part of ur code plz!
19 replies
DIAdiscord.js - Imagine a boo! 👻
Created by xmnlz on 10/25/2023 in #djs-questions
Im trying to set permission for 10-12 users
can u gave me the error ?
19 replies