ethan<333
ethan<333
DIAdiscord.js - Imagine an app
Created by ethan<333 on 11/15/2024 in #djs-questions
SystemChannelFlagsBitField
ah thank you
13 replies
DIAdiscord.js - Imagine an app
Created by ethan<333 on 11/15/2024 in #djs-questions
SystemChannelFlagsBitField
my updated code is console.log(new SystemChannelFlagsBitField(systemMessageFlagsChange?.new).serialize().SuppressRoleSubscriptionPurchaseNotifications);
13 replies
DIAdiscord.js - Imagine an app
Created by ethan<333 on 11/15/2024 in #djs-questions
SystemChannelFlagsBitField
but after replacing it i still have the same problem
13 replies
DIAdiscord.js - Imagine an app
Created by ethan<333 on 11/15/2024 in #djs-questions
SystemChannelFlagsBitField
apologies, it's SuppressRoleSubscriptionPurchaseNotifications not SuppressRoleSubscriptionPurchaseNotifications
13 replies
DIAdiscord.js - Imagine an app
Created by ethan<333 on 11/15/2024 in #djs-questions
SystemChannelFlagsBitField
i dont understand. my problem is that when logging new SystemChannelFlagsBitField(systemMessageFlagsChange?.new).serialize().SuppressRoleSubscriptionPurchaseNotificationReplies once after enabling the boost flag and once after disabling it, both times it returns false
13 replies
DIAdiscord.js - Imagine an app
Created by ethan<333 on 11/15/2024 in #djs-questions
SystemChannelFlagsBitField
what do you mean?
13 replies
DIAdiscord.js - Imagine an app
Created by ethan<333 on 11/15/2024 in #djs-questions
SystemChannelFlagsBitField
and 13 when just the boost option is enabled (not suppressed)
13 replies
DIAdiscord.js - Imagine an app
Created by ethan<333 on 11/15/2024 in #djs-questions
SystemChannelFlagsBitField
15 when all are suppressed
13 replies
DIAdiscord.js - Imagine an app
Created by ethan<333 on 11/15/2024 in #djs-questions
SystemChannelFlagsBitField
yeah
13 replies
DIAdiscord.js - Imagine an app
Created by LukeZ on 11/14/2024 in #djs-questions
How to handle unhandled rejections?
high-level .catch: takes no time but less efficient low-level .catch: takes a long time but very efficient
36 replies
DIAdiscord.js - Imagine an app
Created by LukeZ on 11/14/2024 in #djs-questions
How to handle unhandled rejections?
ah apols
36 replies
DIAdiscord.js - Imagine an app
Created by LukeZ on 11/14/2024 in #djs-questions
How to handle unhandled rejections?
there's pros and cons to it
36 replies
DIAdiscord.js - Imagine an app
Created by LukeZ on 11/14/2024 in #djs-questions
How to handle unhandled rejections?
how is it easier to go through an entire codebase and add some code to the end of every promise than just using the code i sent
36 replies
DIAdiscord.js - Imagine an app
Created by LukeZ on 11/14/2024 in #djs-questions
How to handle unhandled rejections?
im aware, hence my warning above
36 replies
DIAdiscord.js - Imagine an app
Created by LukeZ on 11/14/2024 in #djs-questions
How to handle unhandled rejections?
its always possible
36 replies
DIAdiscord.js - Imagine an app
Created by LukeZ on 11/14/2024 in #djs-questions
How to handle unhandled rejections?
but it is generally easier to catch bugs when you .catch the promise instead of doing it on a higher level like the above code
36 replies
DIAdiscord.js - Imagine an app
Created by LukeZ on 11/14/2024 in #djs-questions
How to handle unhandled rejections?
process
.on("unhandledRejection", (err: Error) => logger.error(inspect(err), "unhandledRejection"))
.on("uncaughtException", (err: Error) => logger.error(inspect(err), "uncaughtException"))
.on("error", (err: Error) => logger.error(inspect(err), "error"))
.on("warning", (err: Error) => logger.error(inspect(err), "warning"));
process
.on("unhandledRejection", (err: Error) => logger.error(inspect(err), "unhandledRejection"))
.on("uncaughtException", (err: Error) => logger.error(inspect(err), "uncaughtException"))
.on("error", (err: Error) => logger.error(inspect(err), "error"))
.on("warning", (err: Error) => logger.error(inspect(err), "warning"));
36 replies
DIAdiscord.js - Imagine an app
Created by ethan<333 on 11/10/2024 in #djs-questions
Property 'SoundboardSoundCreate' does not exist on type 'typeof AuditLogEvent'
alright
16 replies
DIAdiscord.js - Imagine an app
Created by ethan<333 on 11/10/2024 in #djs-questions
Property 'SoundboardSoundCreate' does not exist on type 'typeof AuditLogEvent'
ty, and how do i import SoundboardSound?
16 replies
DIAdiscord.js - Imagine an app
Created by ethan<333 on 11/10/2024 in #djs-questions
Property 'SoundboardSoundCreate' does not exist on type 'typeof AuditLogEvent'
do i need to do npm install after that?
16 replies