From 70c8e902348c867cbe48fe7285e1e906c00ab98f Mon Sep 17 00:00:00 2001 From: XboxBedrock Date: Mon, 1 Jan 2024 21:49:58 -0800 Subject: [PATCH] yay --- .DS_Store | Bin 0 -> 8196 bytes ...s+14.8.0.patch => discord.js+14.13.0.patch} | 17 ++++++++--------- src/.DS_Store | Bin 0 -> 6148 bytes src/events/messageDelete.js | 2 +- src/events/messageUpdate.js | 5 +---- 5 files changed, 10 insertions(+), 14 deletions(-) create mode 100644 .DS_Store rename patches/{discord.js+14.8.0.patch => discord.js+14.13.0.patch} (74%) create mode 100644 src/.DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..4a1994804b706d565fe87e19387cfea3528a8958 GIT binary patch literal 8196 zcmeHM&u&+D79A5f5I)=s^wc!V0v@4uM5t2nlEXAN&`* z`j_~>c+&69OmTN9-n1spBs1SI^S*tv-@MuF+Y*szOuKi8Dn#U4iMmGHS_P~E>k4r0ewhxaOOiUN{9PiG51xjy6R6(6ies0Tk( zL62w;%z!2oBIl1N2BU+K6O2fTGTbj2ZXT9B@Zz+cxVg#BpG`()EnodnIGDt>+BdP4 z%U{|qI0dKVylM62tQC9lbkgv~ulUzJV*cPuW>2n*qi+!bc{DmjIJ{1|C6OnN>6;b<&IfQqK*a)zW4>Y7O za}AD=MN5)XP_fv7kBB{`JqT7YX`P3)L=;XkcC1{|ZWmXRxTApD zSU2~kyp}9aDVF42!5w?*TzT*k(7y7==WNp{!3h(42_1JcSJ=dZb}3##@nZPyudkC; zOIa6HRCu_rA*>J3b~B1VxfCM@brCxmE9myi%7us=*>!_UjrwfZ_dly)i&fy_6v%1U zl@jpD=I{R(w?OOJDqt1(;|hp;v(;?Cjea$+`{P{OMSY9Ph3%Fa6$K5O@VH9HfvbNQ aqVJlyy1}JJ%%Ipm1e6T6u?qZE1%3jQdN`o~ literal 0 HcmV?d00001 diff --git a/patches/discord.js+14.8.0.patch b/patches/discord.js+14.13.0.patch similarity index 74% rename from patches/discord.js+14.8.0.patch rename to patches/discord.js+14.13.0.patch index a727e91..82eb525 100644 --- a/patches/discord.js+14.8.0.patch +++ b/patches/discord.js+14.13.0.patch @@ -1,18 +1,17 @@ diff --git a/node_modules/discord.js/typings/index.d.ts b/node_modules/discord.js/typings/index.d.ts -index 7059ba0..d0158a3 100644 +index fda9b4c..be34866 100644 --- a/node_modules/discord.js/typings/index.d.ts +++ b/node_modules/discord.js/typings/index.d.ts -@@ -932,6 +932,13 @@ export class Client extends BaseClient { - private _validateOptions(options: ClientOptions): void; - private get _censoredToken(): string | null; - +@@ -982,6 +982,12 @@ export class Client extends BaseClient { + public login(token?: string): Promise; + public isReady(): this is Client; + public toJSON(): unknown; + log: (content: any, logType: any, client: any) => Promise; + config: { prefix: string; token: string; channels: { messageLog: string; mainLog: string; joinLog: string;}; colors: { join: string; leave: string; memberUpdate: string; roleCreate: string; roleDelete: string; roleUpdate: string; messages: { edit: string; delete: string; bulkDelete: string; reactionAdd: string; reactionRemove: string; }; }; events: { guildMemberAdd: boolean; guildMemberRemove: boolean; guildMemberUpdate: boolean; messageCreate: boolean; messageDelete: boolean; messageDeleteBulk: boolean; messageReactionAdd: boolean; messageReactionDelete: boolean; messageUpdate: boolean; ready: boolean; roleCreate: boolean; roleDelete: boolean; roleUpdate: boolean; }; }; + hexToRGB: (hexCode: string) => readonly number; + logger: any; + db: any; + logGuild: number -+ - public application: If; - public channels: ChannelManager; - public get emojis(): BaseGuildEmojiManager; + + public on(event: K, listener: (...args: ClientEvents[K]) => Awaitable): this; + public on( diff --git a/src/.DS_Store b/src/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..f268d7e4d25850d8b7b2a90e3bc3f127b5fe1a65 GIT binary patch literal 6148 zcmeHK%}T>S5Z-NTn^J@v6nb3nTCi4I6fYsx7cim+mD-S?!I&*g+8#Q3n9UfoKoL0_6@u={P|YMGay3TAQh$}s{8;)G z1N}u8etVOJYzdmM^7nuEvp7n#e*cr#>W!Ud%W7F2>%n`LD=(X7i`1RY@340*W$YLB z)W3odk1h$vv=TLMuSbPVPiAp*j6 zDWERp=83^|IrxRia}4Ghbvff|W*EoJTs&U5njQQ?r8Dkmq?Q;U2FeW7b=Su8{}O(g z%13^=gnGmPG4RhA;El02c41NGZ2h)8JZlB$BPa^y null) const messageAuthor = await client.users.cache.get(message.author.id) + client.logger.info(`messageDelete: ${messageAuthor.tag} (${messageAuthor.id})`) content.embeds.push({ color: client.hexToRGB(client.config.colors.messages.delete), diff --git a/src/events/messageUpdate.js b/src/events/messageUpdate.js index 15bc58b..c57889e 100644 --- a/src/events/messageUpdate.js +++ b/src/events/messageUpdate.js @@ -7,10 +7,6 @@ export default { name: "messageUpdate", once: false, async execute(oldMessage, newMessage, client) { - client.logger.info( - `messageUpdate: ${newMessage.author.tag} (${newMessage.author.id})` - ) - if (newMessage.partial) await newMessage.fetch().catch(noop) let messageLDB = undefined @@ -30,6 +26,7 @@ export default { await client.users.fetch(newMessage.author.id).catch(err => null) const messageAuthor = await client.users.cache.get(newMessage.author.id) + try { client.db