Skip to content

Commit

Permalink
yay
Browse files Browse the repository at this point in the history
  • Loading branch information
XboxBedrock committed Jan 2, 2024
1 parent b515dbb commit 70c8e90
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 14 deletions.
Binary file added .DS_Store
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -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<Ready extends boolean = boolean> extends BaseClient {
private _validateOptions(options: ClientOptions): void;
private get _censoredToken(): string | null;

@@ -982,6 +982,12 @@ export class Client<Ready extends boolean = boolean> extends BaseClient {
public login(token?: string): Promise<string>;
public isReady(): this is Client<true>;
public toJSON(): unknown;
+ log: (content: any, logType: any, client: any) => Promise<any>;
+ 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<Ready, ClientApplication>;
public channels: ChannelManager;
public get emojis(): BaseGuildEmojiManager;

public on<K extends keyof ClientEvents>(event: K, listener: (...args: ClientEvents[K]) => Awaitable<void>): this;
public on<S extends string | symbol>(
Binary file added src/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion src/events/messageDelete.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export default {
name: "messageDelete",
once: false,
async execute(message, client) {
client.logger.info(`messageDelete: ${message.author.tag} (${message.author.id})`)
//if the message has an attachment write the file to a buffer
let messageLDB = undefined
try {
Expand Down Expand Up @@ -44,6 +43,7 @@ export default {

await client.users.fetch(message.author.id).catch(err => 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),
Expand Down
5 changes: 1 addition & 4 deletions src/events/messageUpdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 70c8e90

Please sign in to comment.