Updated all files to new interfaces
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { hypixelGuildID, guildLogChannel, embedColor, devMessage } from "config/options"
|
||||
import color from "utils/functions/colors"
|
||||
import { getGuild, getIGN } from "utils/Hypixel"
|
||||
import { Cron, GuildData } from "interfaces"
|
||||
import { ICron, IGuildData } from "interfaces"
|
||||
import { client } from "utils/Illegitimate"
|
||||
import { TextChannel } from "discord.js"
|
||||
|
||||
@@ -20,7 +20,7 @@ async function guildWeekly() {
|
||||
}]
|
||||
})
|
||||
|
||||
const guild = (await getGuild(hypixelGuildID, "id")) as GuildData
|
||||
const guild = (await getGuild(hypixelGuildID, "id")) as IGuildData
|
||||
const guildMembersList: string[] = []
|
||||
const topWeeklyMembers: { name: string; value: string; inline: boolean }[] = []
|
||||
|
||||
@@ -99,4 +99,4 @@ export = {
|
||||
onComplete: null,
|
||||
start: true,
|
||||
timeZone: "Europe/Zagreb"
|
||||
} as Cron
|
||||
} as ICron
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { GuildMember, userMention } from "discord.js"
|
||||
import { embedColor } from "config/options"
|
||||
import { Event } from "interfaces"
|
||||
import { IEvent } from "interfaces"
|
||||
import logToChannel from "utils/functions/logtochannel"
|
||||
|
||||
export = {
|
||||
@@ -27,4 +27,4 @@ export = {
|
||||
}]
|
||||
})
|
||||
}
|
||||
} as Event
|
||||
} as IEvent
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { ChatInputCommandInteraction, ButtonInteraction } from "discord.js"
|
||||
import color from "utils/functions/colors"
|
||||
import { Event } from "interfaces"
|
||||
import { IEvent } from "interfaces"
|
||||
|
||||
export = {
|
||||
name: "logBtnsCmds",
|
||||
@@ -51,4 +51,4 @@ export = {
|
||||
return
|
||||
}
|
||||
}
|
||||
} as Event
|
||||
} as IEvent
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Message } from "discord.js"
|
||||
import { Event } from "interfaces"
|
||||
import { IEvent } from "interfaces"
|
||||
import env from "utils/Env"
|
||||
|
||||
export = {
|
||||
@@ -31,4 +31,4 @@ export = {
|
||||
})
|
||||
}
|
||||
}
|
||||
} as Event
|
||||
} as IEvent
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Event } from "interfaces"
|
||||
import { IEvent } from "interfaces"
|
||||
import { Message } from "discord.js"
|
||||
|
||||
export = {
|
||||
@@ -11,4 +11,4 @@ export = {
|
||||
message.react("Woot:734345936347725885")
|
||||
}
|
||||
}
|
||||
} as Event
|
||||
} as IEvent
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ChannelType, Message } from "discord.js"
|
||||
import { Event } from "interfaces"
|
||||
import { IEvent } from "interfaces"
|
||||
import snipeCacheSchema from "schemas/snipeCacheSchema"
|
||||
import mongoose from "mongoose"
|
||||
import { SnipeCache } from "typings"
|
||||
@@ -32,4 +32,4 @@ export = {
|
||||
|
||||
await snipeCache.save()
|
||||
}
|
||||
} as Event
|
||||
} as IEvent
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Event } from "interfaces"
|
||||
import { IEvent } from "interfaces"
|
||||
import { ExtendedClient as Client } from "utils/Client"
|
||||
import color from "utils/functions/colors"
|
||||
|
||||
@@ -10,4 +10,4 @@ export = {
|
||||
execute(client: Client) {
|
||||
console.log(color("Logged in as " + client.user!.tag + "!", "green"))
|
||||
}
|
||||
} as Event
|
||||
} as IEvent
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import logToChannel from "utils/functions/logtochannel"
|
||||
import { Event } from "interfaces"
|
||||
import { IEvent } from "interfaces"
|
||||
import { embedColor } from "config/options"
|
||||
|
||||
export = {
|
||||
@@ -17,4 +17,4 @@ export = {
|
||||
}]
|
||||
})
|
||||
}
|
||||
} as Event
|
||||
} as IEvent
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import statuses from "config/statuses"
|
||||
import { Event } from "interfaces"
|
||||
import { IEvent } from "interfaces"
|
||||
import { ExtendedClient as Client } from "utils/Client"
|
||||
|
||||
export = {
|
||||
@@ -27,4 +27,4 @@ export = {
|
||||
|
||||
user.setStatus("dnd")
|
||||
}
|
||||
} as Event
|
||||
} as IEvent
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { userMention, channelMention, VoiceState } from "discord.js"
|
||||
import { embedColor } from "config/options"
|
||||
import { Event } from "interfaces"
|
||||
import { IEvent } from "interfaces"
|
||||
import logToChannel from "utils/functions/logtochannel"
|
||||
|
||||
export = {
|
||||
@@ -58,4 +58,4 @@ export = {
|
||||
})
|
||||
}
|
||||
}
|
||||
} as Event
|
||||
} as IEvent
|
||||
|
||||
Reference in New Issue
Block a user