Updated imports and formating

Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
2024-01-16 17:05:15 +01:00
parent ee0250ed5e
commit 5661bc66bb
49 changed files with 819 additions and 491 deletions

View File

@@ -12,9 +12,7 @@ import { TextChannel } from "discord.js"
const client = Illegitimate.client
async function guildWeekly() {
const channel = client.channels.cache.get(
guildLogChannel,
) as TextChannel
const channel = client.channels.cache.get(guildLogChannel) as TextChannel
if (!channel) {
console.log(colorLog("Guild log channel not found", "red"))

View File

@@ -11,32 +11,38 @@ export = {
execute(interaction: ChatInputCommandInteraction | ButtonInteraction) {
if (interaction.isCommand()) {
try {
console.log(color(
interaction.user.username +
" ran " +
interaction.commandName +
" " +
interaction.options.getSubcommand(),
"pink")
console.log(
color(
interaction.user.username +
" ran " +
interaction.commandName +
" " +
interaction.options.getSubcommand(),
"pink",
),
)
} catch {
console.log(color(
interaction.user.username +
" ran " +
interaction.commandName,
"pink")
console.log(
color(
interaction.user.username +
" ran " +
interaction.commandName,
"pink",
),
)
}
}
if (interaction.isButton()) {
console.log(color(
interaction.user.username +
"#" +
interaction.user.discriminator +
" clicked " +
interaction.customId,
"pink")
console.log(
color(
interaction.user.username +
"#" +
interaction.user.discriminator +
" clicked " +
interaction.customId,
"pink",
),
)
return
}

View File

@@ -24,12 +24,12 @@ export = {
}
const snipeCache = new snipeCacheSchema({
_id: new mongoose.Types.ObjectId,
_id: new mongoose.Types.ObjectId(),
userid: message.author.id,
channelid: message.channel.id,
data: msg,
})
await snipeCache.save()
}
} as Event
},
} as Event

View File

@@ -1,8 +1,4 @@
import {
userMention,
channelMention,
VoiceState,
} from "discord.js"
import { userMention, channelMention, VoiceState } from "discord.js"
import { color } from "config/options.json"
import { Event } from "interfaces"
import logToChannel from "utils/functions/logtochannel"
@@ -32,7 +28,8 @@ export = {
color: embedColor,
footer: {
text: "ID: " + newState.member!.id,
icon_url: newState.member!.user.avatarURL() || undefined,
icon_url:
newState.member!.user.avatarURL() || undefined,
},
timestamp: new Date().toISOString(),
},
@@ -50,7 +47,8 @@ export = {
color: embedColor,
footer: {
text: "ID: " + oldState.member!.id,
icon_url: oldState.member!.user.avatarURL() || undefined,
icon_url:
oldState.member!.user.avatarURL() || undefined,
},
timestamp: new Date().toISOString(),
},
@@ -72,7 +70,8 @@ export = {
color: embedColor,
footer: {
text: "ID: " + oldState.member!.id,
icon_url: oldState.member!.user.avatarURL() || undefined,
icon_url:
oldState.member!.user.avatarURL() || undefined,
},
timestamp: new Date().toISOString(),
},