Daniël
Daniël
DIAdiscord.js - Imagine an app
Created by Daniël on 6/17/2024 in #djs-voice
Full voice logging
And what can that said in this case to make a difference between a user disconenct by self and a member disconnect by an admin
18 replies
DIAdiscord.js - Imagine an app
Created by Daniël on 6/17/2024 in #djs-voice
Full voice logging
what said that extra.count field?
18 replies
DIAdiscord.js - Imagine an app
Created by Daniël on 6/17/2024 in #djs-voice
Full voice logging
And even if you go and look, I don't think you'll ever get these logs right at all. Because you can look at the time only as soon as I now (12:26:10) kick someone out of a channel and I do this at 12:26:20 again, then those 5 seconds of the variable time difference are over and they start thinking that it was not an admin who kicked the user out but that the user himself left.
18 replies
DIAdiscord.js - Imagine an app
Created by Daniël on 6/17/2024 in #djs-voice
Full voice logging
the executor returns the user (If the user disconnect by himself it's the user self) if the user disconnected by an admin the executor has the id of the admin
18 replies
DIAdiscord.js - Imagine an app
Created by Daniël on 6/17/2024 in #djs-voice
Full voice logging
the only properties that i got out of the entry and working are the executor and createdtimestamp
18 replies
DIAdiscord.js - Imagine an app
Created by Daniël on 6/17/2024 in #djs-voice
Full voice logging
That's nothing or i'm looking wrong?
18 replies
DIAdiscord.js - Imagine an app
Created by Daniël on 6/17/2024 in #djs-voice
Full voice logging
const { executor, target, extra, createdTimestamp } = entry; console.log(target);
18 replies
DIAdiscord.js - Imagine an app
Created by Daniël on 6/17/2024 in #djs-voice
Full voice logging
target is null
18 replies
DIAdiscord.js - Imagine an app
Created by Daniël on 6/17/2024 in #djs-voice
Full voice logging
You mean like this
if (executor.id !== oldState.member.user.id) {
// user has been disconnect by an admin
if (timeDifference < 5000) {

}
} else {
// user disconnecting self
}
if (executor.id !== oldState.member.user.id) {
// user has been disconnect by an admin
if (timeDifference < 5000) {

}
} else {
// user disconnecting self
}
18 replies
DIAdiscord.js - Imagine an app
Created by Daniël on 6/17/2024 in #djs-voice
Full voice logging
But first check if the disconnected user from the AuditLog matches the one of the emitted voiceStateUpdate event or first check the timedifference?
18 replies
DIAdiscord.js - Imagine an app
Created by Daniël on 6/17/2024 in #djs-voice
Full voice logging
and how
18 replies
DIAdiscord.js - Imagine an app
Created by Daniël on 6/17/2024 in #djs-voice
Full voice logging
Where i need to check the target and why
18 replies
DIAdiscord.js - Imagine an app
Created by Daniël on 6/17/2024 in #djs-voice
Full voice logging
yeh that's he problem leaving doesn't casue an AuditLog so if you disconnect a user and then i leave the channel its also creaters this embed userDisconnect.addFields({ name: "Disconnected by:", value: > <@${executor.id}> (${executor.id}) })
18 replies
DIAdiscord.js - Imagine an app
Created by Daniël on 6/17/2024 in #djs-voice
Full voice logging
18 replies
DIAdiscord.js - Imagine an app
Created by Daniël on 6/17/2024 in #djs-voice
Full voice logging
But also if you check the timestamp it's broke when you leave
18 replies
DIAdiscord.js - Imagine an app
Created by Daniël on 6/17/2024 in #djs-voice
Full voice logging
In theory there is a difference, yes, but not in practice. Even if you are going to disconnect yourself, there will be no audit log so even if you are going to retrieve audit logs, it will always retrieve the last audit log and that will then be a member move while the user himself just disconnect
18 replies
DIAdiscord.js - Imagine an app
Created by Daniël on 6/12/2024 in #djs-questions
Fetching member disconnect audit logs
No description
8 replies
DIAdiscord.js - Imagine an app
Created by Daniël on 6/12/2024 in #djs-questions
Fetching member disconnect audit logs
this is the whole problem
8 replies
DIAdiscord.js - Imagine an app
Created by Daniël on 6/12/2024 in #djs-questions
Fetching member disconnect audit logs
In the test case it's always the same but
8 replies
DIAdiscord.js - Imagine an app
Created by Daniël on 6/12/2024 in #djs-questions
Fetching member disconnect audit logs
No description
8 replies