-fishon?
-fishon?
DIAdiscord.js - Imagine an app
Created by -fishon? on 3/31/2025 in #djs-questions
why are video_quality_mode and rtc_region missing in auditLogEntry.changes keys?
and maybe a few more that I haven't found
5 replies
DIAdiscord.js - Imagine an app
Created by -fishon? on 3/31/2025 in #djs-questions
why are video_quality_mode and rtc_region missing in auditLogEntry.changes keys?
should they be added to the typing in the next updates?
5 replies
DIAdiscord.js - Imagine an app
Created by -fishon? on 3/31/2025 in #djs-questions
why are video_quality_mode and rtc_region missing in auditLogEntry.changes keys?
I checked myself that sometimes it comes in the keys and they come but they are not in the typing
5 replies
DIAdiscord.js - Imagine an app
Created by Maxi on 3/26/2025 in #djs-questions
Read Desc
discord.com/developers/applications/(here is your bot id)/emojis
6 replies
DIAdiscord.js - Imagine an app
Created by -fishon? on 3/25/2025 in #djs-questions
PermissionOverwrites Why did this stop working?
but I would still like a simpler option and not do this
66 replies
DIAdiscord.js - Imagine an app
Created by -fishon? on 3/25/2025 in #djs-questions
PermissionOverwrites Why did this stop working?
const allowBf = new PermissionsBitField(BigInt(allow));
const denyBf = new PermissionsBitField(BigInt(deny));

return Object.fromEntries([
...allowBf.toArray().map(p => [p, true]),
...denyBf.toArray().map(p => [p, false])
]);
const allowBf = new PermissionsBitField(BigInt(allow));
const denyBf = new PermissionsBitField(BigInt(deny));

return Object.fromEntries([
...allowBf.toArray().map(p => [p, true]),
...denyBf.toArray().map(p => [p, false])
]);
66 replies
DIAdiscord.js - Imagine an app
Created by -fishon? on 3/25/2025 in #djs-questions
PermissionOverwrites Why did this stop working?
const allowBf = new PermissionsBitField(BigInt(allow));
const denyBf = new PermissionsBitField(BigInt(deny));

const perms = Object.fromEntries(
Object.keys(PermissionsBitField.Flags).map(p => [p, null])
);

[...allowBf.toArray(), ...denyBf.toArray()].forEach(p => (perms[p] = true));

return perms;
const allowBf = new PermissionsBitField(BigInt(allow));
const denyBf = new PermissionsBitField(BigInt(deny));

const perms = Object.fromEntries(
Object.keys(PermissionsBitField.Flags).map(p => [p, null])
);

[...allowBf.toArray(), ...denyBf.toArray()].forEach(p => (perms[p] = true));

return perms;
66 replies
DIAdiscord.js - Imagine an app
Created by -fishon? on 3/25/2025 in #djs-questions
PermissionOverwrites Why did this stop working?
yes, thank you, I already understood ahahahaha
66 replies
DIAdiscord.js - Imagine an app
Created by -fishon? on 3/25/2025 in #djs-questions
PermissionOverwrites Why did this stop working?
then this decision remains for now
66 replies
DIAdiscord.js - Imagine an app
Created by -fishon? on 3/25/2025 in #djs-questions
PermissionOverwrites Why did this stop working?
not quite like that, some rights I need are old
66 replies
DIAdiscord.js - Imagine an app
Created by -fishon? on 3/25/2025 in #djs-questions
PermissionOverwrites Why did this stop working?
and I understood
66 replies
DIAdiscord.js - Imagine an app
Created by -fishon? on 3/25/2025 in #djs-questions
PermissionOverwrites Why did this stop working?
Gl what is this
66 replies
DIAdiscord.js - Imagine an app
Created by -fishon? on 3/25/2025 in #djs-questions
PermissionOverwrites Why did this stop working?
It's hard for me to translate, I don't understand everything, can you explain?
66 replies
DIAdiscord.js - Imagine an app
Created by -fishon? on 3/25/2025 in #djs-questions
PermissionOverwrites Why did this stop working?
another option is to simply do it in the library itself
case AuditLogEvent.ChannelOverwriteCreate:
case AuditLogEvent.ChannelOverwriteUpdate:
case AuditLogEvent.ChannelOverwriteDelete:
switch (data.options.type) {
case AuditLogOptionsType.Role:
this.extra = {
id: data.options.id,
name: data.options.role_name,
type: AuditLogOptionsType.Role,
};
break;

case AuditLogOptionsType.Member:
this.extra = {
id: data.options.id,
type: AuditLogOptionsType.Member,
};
break;

default:
break;
}
break;
case AuditLogEvent.ChannelOverwriteCreate:
case AuditLogEvent.ChannelOverwriteUpdate:
case AuditLogEvent.ChannelOverwriteDelete:
switch (data.options.type) {
case AuditLogOptionsType.Role:
this.extra = {
id: data.options.id,
name: data.options.role_name,
type: AuditLogOptionsType.Role,
};
break;

case AuditLogOptionsType.Member:
this.extra = {
id: data.options.id,
type: AuditLogOptionsType.Member,
};
break;

default:
break;
}
break;
66 replies
DIAdiscord.js - Imagine an app
Created by -fishon? on 3/25/2025 in #djs-questions
PermissionOverwrites Why did this stop working?
which is a bit annoying because I don't get the same information from the audit log
66 replies
DIAdiscord.js - Imagine an app
Created by -fishon? on 3/25/2025 in #djs-questions
PermissionOverwrites Why did this stop working?
and now you need to specify channel.permissionOverwrites.edit(extra.id, { AddReactions: false });
66 replies
DIAdiscord.js - Imagine an app
Created by -fishon? on 3/25/2025 in #djs-questions
PermissionOverwrites Why did this stop working?
when i did this it started working
await guild.channels.edit(channel.id, { permissionOverwrites: [
{
id: extra.id,
allow: allowRaw,
deny: denyRaw,
}
await guild.channels.edit(channel.id, { permissionOverwrites: [
{
id: extra.id,
allow: allowRaw,
deny: denyRaw,
}
66 replies
DIAdiscord.js - Imagine an app
Created by -fishon? on 3/25/2025 in #djs-questions
PermissionOverwrites Why did this stop working?
yes
66 replies
DIAdiscord.js - Imagine an app
Created by -fishon? on 3/25/2025 in #djs-questions
PermissionOverwrites Why did this stop working?
yes
66 replies
DIAdiscord.js - Imagine an app
Created by -fishon? on 3/25/2025 in #djs-questions
PermissionOverwrites Why did this stop working?
?
66 replies