Updated imports and formating
Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
@@ -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"))
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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(),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user