Merge branch 'dev' into 'main'
Dev See merge request illegitimate/illegitimate-bot!163
This commit is contained in:
@@ -5,8 +5,9 @@ import {
|
|||||||
GuildMember,
|
GuildMember,
|
||||||
} from "discord.js"
|
} from "discord.js"
|
||||||
import { admin, helper } from "../../config/roles.json"
|
import { admin, helper } from "../../config/roles.json"
|
||||||
import { color } from "../../config/options.json"
|
import { color, devMessage } from "../../config/options.json"
|
||||||
import { Command } from "../interfaces"
|
import { Command } from "../interfaces"
|
||||||
|
import logToChannel from "../utils/functions/logtochannel"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "ban",
|
name: "ban",
|
||||||
@@ -110,24 +111,23 @@ export = {
|
|||||||
deleteMessageDays: messageDeletionDays,
|
deleteMessageDays: messageDeletionDays,
|
||||||
})
|
})
|
||||||
|
|
||||||
await interaction.editReply({
|
await logToChannel("mod", {
|
||||||
embeds: [
|
embeds: [{
|
||||||
{
|
author: {
|
||||||
|
name: mod.user.username,
|
||||||
|
icon_url: mod.user.avatarURL({ forceStatic: false }) || undefined,
|
||||||
|
},
|
||||||
title: "Member Banned",
|
title: "Member Banned",
|
||||||
description:
|
description: `
|
||||||
"**User:** " +
|
**User:** ${userMention(member.user.id)}
|
||||||
userMention(member.user.id) +
|
**Mod:** ${userMention(mod.user.id)}
|
||||||
"\n" +
|
**Reason:** ${reason}
|
||||||
"**Reason:** " +
|
**Messages Deleted:** ${messageDeletionDays} days
|
||||||
reason +
|
`,
|
||||||
"\n" +
|
|
||||||
"**Moderator:** " +
|
|
||||||
mod.user.username +
|
|
||||||
"\n" +
|
|
||||||
"**Messages Deleted:** " +
|
|
||||||
messageDeletionDays +
|
|
||||||
" days",
|
|
||||||
color: embedColor,
|
color: embedColor,
|
||||||
|
thumbnail: {
|
||||||
|
url: mod.user.avatarURL({ forceStatic: false }) || "",
|
||||||
|
},
|
||||||
footer: {
|
footer: {
|
||||||
text: "ID: " + member.user.id,
|
text: "ID: " + member.user.id,
|
||||||
icon_url:
|
icon_url:
|
||||||
@@ -135,6 +135,25 @@ export = {
|
|||||||
undefined,
|
undefined,
|
||||||
},
|
},
|
||||||
timestamp: new Date().toISOString(),
|
timestamp: new Date().toISOString(),
|
||||||
|
}]
|
||||||
|
})
|
||||||
|
|
||||||
|
await interaction.editReply({
|
||||||
|
embeds: [
|
||||||
|
{
|
||||||
|
title: "Member Banned",
|
||||||
|
description:
|
||||||
|
"**User:** " + userMention(member.user.id) + "\n" +
|
||||||
|
"**Reason:** " + reason + "\n" +
|
||||||
|
"**Messages Deleted:** " + messageDeletionDays + " days",
|
||||||
|
color: embedColor,
|
||||||
|
thumbnail: {
|
||||||
|
url: member.user.avatarURL({ forceStatic: false }) || "",
|
||||||
|
},
|
||||||
|
footer: {
|
||||||
|
icon_url: interaction.guild!.iconURL({ forceStatic: false, }) || undefined,
|
||||||
|
text: interaction.guild!.name + " | " + devMessage,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -306,9 +306,7 @@ export = {
|
|||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
text: interaction.guild!.name + " | " + devMessage,
|
text: interaction.guild!.name + " | " + devMessage,
|
||||||
icon_url: interaction.guild!.iconURL({
|
icon_url: interaction.guild!.iconURL({ forceStatic: true, }) || undefined,
|
||||||
forceStatic: true,
|
|
||||||
})!,
|
|
||||||
},
|
},
|
||||||
fields: statsFields,
|
fields: statsFields,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -2,9 +2,12 @@ import {
|
|||||||
SlashCommandBuilder,
|
SlashCommandBuilder,
|
||||||
PermissionFlagsBits,
|
PermissionFlagsBits,
|
||||||
TextChannel,
|
TextChannel,
|
||||||
|
channelMention,
|
||||||
|
userMention,
|
||||||
} from "discord.js"
|
} from "discord.js"
|
||||||
import { color } from "../../config/options.json"
|
import { color } from "../../config/options.json"
|
||||||
import { Command } from "../interfaces"
|
import { Command } from "../interfaces"
|
||||||
|
import logToChannel from "../utils/functions/logtochannel"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "clear",
|
name: "clear",
|
||||||
@@ -32,12 +35,12 @@ export = {
|
|||||||
const channel = interaction.channel as TextChannel
|
const channel = interaction.channel as TextChannel
|
||||||
const embedColor = Number(color.replace("#", "0x"))
|
const embedColor = Number(color.replace("#", "0x"))
|
||||||
|
|
||||||
if (!amount || amount < 1 || amount > 100) {
|
if (amount < 1 || amount > 100) {
|
||||||
await interaction.editReply({
|
await interaction.editReply({
|
||||||
embeds: [
|
embeds: [
|
||||||
{
|
{
|
||||||
description:
|
description:
|
||||||
"Please provide an amount of messages to clear",
|
"Please provide an amount of messages to clear between 1 and 100.",
|
||||||
color: embedColor,
|
color: embedColor,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@@ -56,6 +59,30 @@ export = {
|
|||||||
|
|
||||||
await channel.bulkDelete(messagesToDelete, true)
|
await channel.bulkDelete(messagesToDelete, true)
|
||||||
|
|
||||||
|
await logToChannel("mod", {
|
||||||
|
embeds: [{
|
||||||
|
author: {
|
||||||
|
name: interaction.user.username,
|
||||||
|
icon_url: interaction.user.avatarURL({ forceStatic: false }) || undefined,
|
||||||
|
},
|
||||||
|
title: "Messages Cleared",
|
||||||
|
description: `
|
||||||
|
**Channel:** ${channelMention(channel.id)}
|
||||||
|
**Amount:** \`${messages.size}\` messages
|
||||||
|
**Mod:** ${userMention(interaction.user.id)}
|
||||||
|
`,
|
||||||
|
color: embedColor,
|
||||||
|
thumbnail: {
|
||||||
|
url: interaction.user.avatarURL({ forceStatic: false }) || "",
|
||||||
|
},
|
||||||
|
footer: {
|
||||||
|
text: "ID: " + channel.id,
|
||||||
|
icon_url: interaction.guild!.iconURL({ forceStatic: false }) || undefined,
|
||||||
|
},
|
||||||
|
timestamp: new Date().toISOString()
|
||||||
|
}]
|
||||||
|
})
|
||||||
|
|
||||||
await interaction.editReply({
|
await interaction.editReply({
|
||||||
embeds: [
|
embeds: [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ import { color, devMessage } from "../../config/options.json"
|
|||||||
import verify = require("../schemas/verifySchema")
|
import verify = require("../schemas/verifySchema")
|
||||||
import { Command } from "../interfaces"
|
import { Command } from "../interfaces"
|
||||||
import roleManage from "../utils/functions/rolesmanage"
|
import roleManage from "../utils/functions/rolesmanage"
|
||||||
|
import logToChannel from "../utils/functions/logtochannel"
|
||||||
|
import { getIGN } from "../utils/Hypixel"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "forceunverify",
|
name: "forceunverify",
|
||||||
@@ -32,6 +34,7 @@ export = {
|
|||||||
const member = interaction.options.getMember("user") as GuildMember
|
const member = interaction.options.getMember("user") as GuildMember
|
||||||
const embedColor = Number(color.replace("#", "0x"))
|
const embedColor = Number(color.replace("#", "0x"))
|
||||||
const verifiedUser = await verify.findOne({ userID: member.user.id })
|
const verifiedUser = await verify.findOne({ userID: member.user.id })
|
||||||
|
const mod = interaction.user
|
||||||
|
|
||||||
if (!verifiedUser) {
|
if (!verifiedUser) {
|
||||||
return interaction.reply({
|
return interaction.reply({
|
||||||
@@ -43,10 +46,38 @@ export = {
|
|||||||
],
|
],
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
await verify.findOneAndDelete({ userID: member.user.id })
|
|
||||||
|
|
||||||
|
const uuid = verifiedUser.uuid
|
||||||
|
const ign = await getIGN(uuid)
|
||||||
|
await verify.findOneAndDelete({ userID: member.user.id })
|
||||||
await member.roles.remove(roleManage("all").rolesToRemove, "User force unverified by " + interaction.user.username)
|
await member.roles.remove(roleManage("all").rolesToRemove, "User force unverified by " + interaction.user.username)
|
||||||
|
|
||||||
|
|
||||||
|
await logToChannel("mod", {
|
||||||
|
embeds: [{
|
||||||
|
title: "Force Unverified",
|
||||||
|
author: {
|
||||||
|
name: mod.username,
|
||||||
|
icon_url: mod.avatarURL({ forceStatic: false }) || undefined,
|
||||||
|
},
|
||||||
|
description: `
|
||||||
|
**User:** ${userMention(member.user.id)}
|
||||||
|
**Mod:** ${userMention(mod.id)}
|
||||||
|
**IGN:** \`${ign}\`
|
||||||
|
**UUID:** \`${uuid}\`
|
||||||
|
`,
|
||||||
|
color: embedColor,
|
||||||
|
thumbnail: {
|
||||||
|
url: mod.avatarURL({ forceStatic: false }) || "",
|
||||||
|
},
|
||||||
|
footer: {
|
||||||
|
icon_url: member.user.avatarURL({ forceStatic: false }) || undefined,
|
||||||
|
text: "ID: " + member.user.id,
|
||||||
|
},
|
||||||
|
timestamp: new Date().toISOString(),
|
||||||
|
}]
|
||||||
|
})
|
||||||
|
|
||||||
await interaction.reply({
|
await interaction.reply({
|
||||||
embeds: [
|
embeds: [
|
||||||
{
|
{
|
||||||
@@ -56,9 +87,7 @@ export = {
|
|||||||
color: embedColor,
|
color: embedColor,
|
||||||
footer: {
|
footer: {
|
||||||
text: interaction.guild!.name + " | " + devMessage,
|
text: interaction.guild!.name + " | " + devMessage,
|
||||||
icon_url: interaction.guild!.iconURL({
|
icon_url: interaction.guild!.iconURL({ forceStatic: false, }) || undefined,
|
||||||
forceStatic: false,
|
|
||||||
})!,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -114,9 +114,8 @@ export = {
|
|||||||
|
|
||||||
if (responseGuildID === hypixelGuildID) {
|
if (responseGuildID === hypixelGuildID) {
|
||||||
const GuildMembers = guild!.members
|
const GuildMembers = guild!.members
|
||||||
const guildRank = GuildMembers.find(
|
const guildRank = GuildMembers.find( member => member.uuid === verifyData.uuid)!.rank
|
||||||
member => member.uuid === verifyData.uuid,
|
let replyRank: string | null = null
|
||||||
)!.rank
|
|
||||||
|
|
||||||
await user.roles.add(roleManage("default").rolesToAdd, "User was force updated.")
|
await user.roles.add(roleManage("default").rolesToAdd, "User was force updated.")
|
||||||
|
|
||||||
@@ -124,181 +123,60 @@ export = {
|
|||||||
const roles = roleManage("gm")
|
const roles = roleManage("gm")
|
||||||
await user.roles.remove(roles.rolesToRemove, "User was force updated.")
|
await user.roles.remove(roles.rolesToRemove, "User was force updated.")
|
||||||
await user.roles.add(roles.rolesToAdd, "User was force updated.")
|
await user.roles.add(roles.rolesToAdd, "User was force updated.")
|
||||||
|
replyRank = "Guild Master"
|
||||||
await interaction.editReply({
|
|
||||||
embeds: [
|
|
||||||
{
|
|
||||||
description:
|
|
||||||
usermentioned +
|
|
||||||
"'s rank has been updated to `Guild Master`",
|
|
||||||
color: embedColor,
|
|
||||||
thumbnail: {
|
|
||||||
url: head!,
|
|
||||||
},
|
|
||||||
footer: {
|
|
||||||
text:
|
|
||||||
interaction.guild!.name +
|
|
||||||
" | " +
|
|
||||||
devMessage,
|
|
||||||
icon_url: interaction.guild!.iconURL({
|
|
||||||
forceStatic: false,
|
|
||||||
})!,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
})
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (guildRank === "Manager") {
|
if (guildRank === "Manager") {
|
||||||
const roles = roleManage("manager")
|
const roles = roleManage("manager")
|
||||||
await user.roles.remove(roles.rolesToRemove, "User was force updated.")
|
await user.roles.remove(roles.rolesToRemove, "User was force updated.")
|
||||||
await user.roles.add(roles.rolesToAdd, "User was force updated.")
|
await user.roles.add(roles.rolesToAdd, "User was force updated.")
|
||||||
|
replyRank = "Manager"
|
||||||
await interaction.editReply({
|
|
||||||
embeds: [
|
|
||||||
{
|
|
||||||
description:
|
|
||||||
usermentioned +
|
|
||||||
"'s rank has been updated to `Manager`",
|
|
||||||
color: embedColor,
|
|
||||||
thumbnail: {
|
|
||||||
url: head!,
|
|
||||||
},
|
|
||||||
footer: {
|
|
||||||
text:
|
|
||||||
interaction.guild!.name +
|
|
||||||
" | " +
|
|
||||||
devMessage,
|
|
||||||
icon_url: interaction.guild!.iconURL({
|
|
||||||
forceStatic: false,
|
|
||||||
})!,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
})
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (guildRank === "Moderator") {
|
if (guildRank === "Moderator") {
|
||||||
const roles = roleManage("moderator")
|
const roles = roleManage("moderator")
|
||||||
await user.roles.remove(roles.rolesToRemove, "User was force updated.")
|
await user.roles.remove(roles.rolesToRemove, "User was force updated.")
|
||||||
await user.roles.add(roles.rolesToAdd, "User was force updated.")
|
await user.roles.add(roles.rolesToAdd, "User was force updated.")
|
||||||
|
replyRank = "Moderator"
|
||||||
await interaction.editReply({
|
|
||||||
embeds: [
|
|
||||||
{
|
|
||||||
description:
|
|
||||||
usermentioned +
|
|
||||||
"'s rank has been updated to `Moderator`",
|
|
||||||
color: embedColor,
|
|
||||||
thumbnail: {
|
|
||||||
url: head!,
|
|
||||||
},
|
|
||||||
footer: {
|
|
||||||
text:
|
|
||||||
interaction.guild!.name +
|
|
||||||
" | " +
|
|
||||||
devMessage,
|
|
||||||
icon_url: interaction.guild!.iconURL({
|
|
||||||
forceStatic: false,
|
|
||||||
})!,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
})
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (guildRank === "Beast") {
|
if (guildRank === "Beast") {
|
||||||
const roles = roleManage("beast")
|
const roles = roleManage("beast")
|
||||||
await user.roles.remove(roles.rolesToRemove, "User was force updated.")
|
await user.roles.remove(roles.rolesToRemove, "User was force updated.")
|
||||||
await user.roles.add(roles.rolesToAdd, "User was force updated.")
|
await user.roles.add(roles.rolesToAdd, "User was force updated.")
|
||||||
|
replyRank = "Beast"
|
||||||
await interaction.editReply({
|
|
||||||
embeds: [
|
|
||||||
{
|
|
||||||
description:
|
|
||||||
usermentioned +
|
|
||||||
"'s rank has been updated to `Beast`.",
|
|
||||||
color: embedColor,
|
|
||||||
thumbnail: {
|
|
||||||
url: head!,
|
|
||||||
},
|
|
||||||
footer: {
|
|
||||||
text:
|
|
||||||
interaction.guild!.name +
|
|
||||||
" | " +
|
|
||||||
devMessage,
|
|
||||||
icon_url: interaction.guild!.iconURL({
|
|
||||||
forceStatic: false,
|
|
||||||
})!,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
})
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (guildRank === "Elite") {
|
if (guildRank === "Elite") {
|
||||||
const roles = roleManage("elite")
|
const roles = roleManage("elite")
|
||||||
await user.roles.remove(roles.rolesToRemove, "User was force updated.")
|
await user.roles.remove(roles.rolesToRemove, "User was force updated.")
|
||||||
await user.roles.add(roles.rolesToAdd, "User was force updated.")
|
await user.roles.add(roles.rolesToAdd, "User was force updated.")
|
||||||
|
replyRank = "Elite"
|
||||||
await interaction.editReply({
|
|
||||||
embeds: [
|
|
||||||
{
|
|
||||||
description:
|
|
||||||
usermentioned +
|
|
||||||
"'s rank has been updated to `Elite`.",
|
|
||||||
color: embedColor,
|
|
||||||
thumbnail: {
|
|
||||||
url: head!,
|
|
||||||
},
|
|
||||||
footer: {
|
|
||||||
text:
|
|
||||||
interaction.guild!.name +
|
|
||||||
" | " +
|
|
||||||
devMessage,
|
|
||||||
icon_url: interaction.guild!.iconURL({
|
|
||||||
forceStatic: false,
|
|
||||||
})!,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
})
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (guildRank === "Member") {
|
if (guildRank === "Member") {
|
||||||
const roles = roleManage("member")
|
const roles = roleManage("member")
|
||||||
await user.roles.remove(roles.rolesToRemove, "User was force updated.")
|
await user.roles.remove(roles.rolesToRemove, "User was force updated.")
|
||||||
await user.roles.add(roles.rolesToAdd, "User was force updated.")
|
await user.roles.add(roles.rolesToAdd, "User was force updated.")
|
||||||
|
replyRank = "Member"
|
||||||
|
}
|
||||||
|
|
||||||
await interaction.editReply({
|
await interaction.editReply({
|
||||||
embeds: [
|
embeds: [
|
||||||
{
|
{
|
||||||
description:
|
description:
|
||||||
usermentioned +
|
usermentioned + " was given the the " + replyRank + " role.",
|
||||||
"'s rank has been updated to `Member`.",
|
|
||||||
color: embedColor,
|
color: embedColor,
|
||||||
thumbnail: {
|
thumbnail: {
|
||||||
url: head!,
|
url: head!,
|
||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
text:
|
text: interaction.guild!.name + " | " + devMessage,
|
||||||
interaction.guild!.name +
|
icon_url: interaction.guild!.iconURL({ forceStatic: false, }) || undefined,
|
||||||
" | " +
|
|
||||||
devMessage,
|
|
||||||
icon_url: interaction.guild!.iconURL({
|
|
||||||
forceStatic: false,
|
|
||||||
})!,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
} as Command
|
} as Command
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import {
|
|||||||
SlashCommandBuilder,
|
SlashCommandBuilder,
|
||||||
PermissionFlagsBits,
|
PermissionFlagsBits,
|
||||||
GuildMember,
|
GuildMember,
|
||||||
|
userMention,
|
||||||
} from "discord.js"
|
} from "discord.js"
|
||||||
import { getUUID, getPlayer, getGuild, getHeadURL } from "../utils/Hypixel"
|
import { getUUID, getPlayer, getGuild, getHeadURL } from "../utils/Hypixel"
|
||||||
import { color, hypixelGuildID, devMessage } from "../../config/options.json"
|
import { color, hypixelGuildID, devMessage } from "../../config/options.json"
|
||||||
@@ -9,6 +10,7 @@ import verify = require("../schemas/verifySchema")
|
|||||||
import mongoose from "mongoose"
|
import mongoose from "mongoose"
|
||||||
import roleManage from "../utils/functions/rolesmanage"
|
import roleManage from "../utils/functions/rolesmanage"
|
||||||
import { Command } from "../interfaces"
|
import { Command } from "../interfaces"
|
||||||
|
import logToChannel from "../utils/functions/logtochannel"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "forceverify",
|
name: "forceverify",
|
||||||
@@ -180,6 +182,31 @@ export = {
|
|||||||
|
|
||||||
await newVerify.save()
|
await newVerify.save()
|
||||||
|
|
||||||
|
await logToChannel("mod", {
|
||||||
|
embeds: [{
|
||||||
|
author: {
|
||||||
|
name: modName,
|
||||||
|
icon_url: mod.avatarURL({ forceStatic: false }) || undefined,
|
||||||
|
},
|
||||||
|
title: "Force Verified",
|
||||||
|
description: `
|
||||||
|
**User:** ${userMention(user.id)}
|
||||||
|
**Mod:** ${userMention(mod.id)}
|
||||||
|
**IGN:** \`${player.displayname}\`
|
||||||
|
**UUID:** \`${uuid}\`
|
||||||
|
`,
|
||||||
|
color: embedColor,
|
||||||
|
thumbnail: {
|
||||||
|
url: mod.avatarURL({ forceStatic: false }) || "",
|
||||||
|
},
|
||||||
|
footer: {
|
||||||
|
icon_url: user.user.avatarURL({ forceStatic: false }) || undefined,
|
||||||
|
text: "ID: " + user.user.id
|
||||||
|
},
|
||||||
|
timestamp: new Date().toISOString(),
|
||||||
|
}]
|
||||||
|
})
|
||||||
|
|
||||||
await interaction.editReply({
|
await interaction.editReply({
|
||||||
embeds: [
|
embeds: [
|
||||||
{
|
{
|
||||||
@@ -195,10 +222,7 @@ export = {
|
|||||||
url: head!,
|
url: head!,
|
||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
icon_url:
|
icon_url: interaction.guild!.iconURL({ forceStatic: false, }) || undefined,
|
||||||
interaction.guild!.iconURL({
|
|
||||||
forceStatic: false,
|
|
||||||
}) || undefined,
|
|
||||||
text: interaction.guild!.name + " | " + devMessage,
|
text: interaction.guild!.name + " | " + devMessage,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -66,12 +66,10 @@ export = {
|
|||||||
fields: commandList,
|
fields: commandList,
|
||||||
color: embedColor,
|
color: embedColor,
|
||||||
thumbnail: {
|
thumbnail: {
|
||||||
url: interaction.guild!.iconURL({ forceStatic: true })!,
|
url: interaction.guild!.iconURL({ forceStatic: true }) || "",
|
||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
icon_url: interaction.guild!.iconURL({
|
icon_url: interaction.guild!.iconURL({ forceStatic: false, }) || undefined,
|
||||||
forceStatic: false,
|
|
||||||
})!,
|
|
||||||
text: interaction.guild!.name + " | " + devMessage,
|
text: interaction.guild!.name + " | " + devMessage,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -32,9 +32,7 @@ export = {
|
|||||||
color: embedColor,
|
color: embedColor,
|
||||||
footer: {
|
footer: {
|
||||||
text: interaction.guild!.name + " | " + devMessage,
|
text: interaction.guild!.name + " | " + devMessage,
|
||||||
icon_url: interaction.guild!.iconURL({
|
icon_url: interaction.guild!.iconURL({ forceStatic: false, }) || undefined,
|
||||||
forceStatic: false,
|
|
||||||
})!,
|
|
||||||
},
|
},
|
||||||
image: {
|
image: {
|
||||||
url: instructionsgif,
|
url: instructionsgif,
|
||||||
|
|||||||
@@ -5,8 +5,9 @@ import {
|
|||||||
GuildMember,
|
GuildMember,
|
||||||
} from "discord.js"
|
} from "discord.js"
|
||||||
import { admin, helper } from "../../config/roles.json"
|
import { admin, helper } from "../../config/roles.json"
|
||||||
import { color } from "../../config/options.json"
|
import { color, devMessage } from "../../config/options.json"
|
||||||
import { Command } from "../interfaces"
|
import { Command } from "../interfaces"
|
||||||
|
import logToChannel from "../utils/functions/logtochannel"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "kick",
|
name: "kick",
|
||||||
@@ -35,18 +36,10 @@ export = {
|
|||||||
async execute(interaction) {
|
async execute(interaction) {
|
||||||
await interaction.deferReply()
|
await interaction.deferReply()
|
||||||
|
|
||||||
const member = interaction.options.getMember(
|
const member = interaction.options.getMember( "member",) as GuildMember
|
||||||
"member",
|
const reason = interaction.options.getString("reason") ?? "No reason provided."
|
||||||
) as GuildMember | null
|
|
||||||
const reason =
|
|
||||||
interaction.options.getString("reason") ?? "No reason provided."
|
|
||||||
const embedColor = Number(color.replace("#", "0x"))
|
const embedColor = Number(color.replace("#", "0x"))
|
||||||
|
|
||||||
if (!member) {
|
|
||||||
await interaction.editReply("You must specify a member.")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
const mod = await interaction.guild!.members.fetch(interaction.user.id)
|
const mod = await interaction.guild!.members.fetch(interaction.user.id)
|
||||||
const memberRoles = member.roles.cache.map(role => role.id)
|
const memberRoles = member.roles.cache.map(role => role.id)
|
||||||
const modRoles = mod.roles.cache.map(role => role.id)
|
const modRoles = mod.roles.cache.map(role => role.id)
|
||||||
@@ -85,27 +78,45 @@ export = {
|
|||||||
|
|
||||||
await member.kick(reason + ` - ${mod.user.username}`)
|
await member.kick(reason + ` - ${mod.user.username}`)
|
||||||
|
|
||||||
|
await logToChannel("mod", {
|
||||||
|
embeds: [{
|
||||||
|
author: {
|
||||||
|
name: mod.user.username,
|
||||||
|
icon_url: mod.user.avatarURL({ forceStatic: false }) || undefined,
|
||||||
|
},
|
||||||
|
title: "Member Kicked",
|
||||||
|
description: `
|
||||||
|
**User:** ${userMention(member.user.id)}
|
||||||
|
**Mod:** ${userMention(mod.user.id)}
|
||||||
|
**Reason:** ${reason}
|
||||||
|
`,
|
||||||
|
color: embedColor,
|
||||||
|
thumbnail: {
|
||||||
|
url: mod.user.avatarURL({ forceStatic: false }) || "",
|
||||||
|
},
|
||||||
|
footer: {
|
||||||
|
text: "ID: " + member.user.id,
|
||||||
|
icon_url: member.user.avatarURL({ forceStatic: false }) || undefined,
|
||||||
|
},
|
||||||
|
timestamp: new Date().toISOString(),
|
||||||
|
}]
|
||||||
|
})
|
||||||
|
|
||||||
await interaction.editReply({
|
await interaction.editReply({
|
||||||
embeds: [
|
embeds: [
|
||||||
{
|
{
|
||||||
title: "Member Kicked",
|
title: "Member Kicked",
|
||||||
description:
|
description: "**User:** " + userMention(member.user.id) + "\n" +
|
||||||
"**User:** " +
|
"**Reason:** " + reason + "\n" +
|
||||||
userMention(member.user.id) +
|
"**Moderator:** " + mod.user.username,
|
||||||
"\n" +
|
|
||||||
"**Reason:** " +
|
|
||||||
reason +
|
|
||||||
"\n" +
|
|
||||||
"**Moderator:** " +
|
|
||||||
mod.user.username,
|
|
||||||
color: embedColor,
|
color: embedColor,
|
||||||
footer: {
|
thumbnail: {
|
||||||
text: "ID: " + member.user.id,
|
url: member.user.avatarURL({ forceStatic: false }) || "",
|
||||||
icon_url:
|
|
||||||
member.user.avatarURL({ forceStatic: false }) ||
|
|
||||||
undefined,
|
|
||||||
},
|
},
|
||||||
timestamp: new Date().toISOString(),
|
footer: {
|
||||||
|
icon_url: interaction.guild!.iconURL({ forceStatic: false, }) || undefined,
|
||||||
|
text: interaction.guild!.name + " | " + devMessage,
|
||||||
|
}
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -3,15 +3,16 @@ import {
|
|||||||
PermissionFlagsBits,
|
PermissionFlagsBits,
|
||||||
userMention,
|
userMention,
|
||||||
} from "discord.js"
|
} from "discord.js"
|
||||||
import { color } from "../../config/options.json"
|
import { color, devMessage } from "../../config/options.json"
|
||||||
import waitinglistSchema = require("../schemas/waitinglistSchema")
|
import waitinglistSchema = require("../schemas/waitinglistSchema")
|
||||||
import { Command } from "../interfaces"
|
import { Command } from "../interfaces"
|
||||||
|
import logToChannel from "../utils/functions/logtochannel"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "remove",
|
name: "remove",
|
||||||
description: "Remove a person on the waiting list.",
|
description: "Remove a person on the waiting list.",
|
||||||
type: "slash",
|
type: "slash",
|
||||||
dev: false,
|
false: true,
|
||||||
public: false,
|
public: false,
|
||||||
|
|
||||||
data: new SlashCommandBuilder()
|
data: new SlashCommandBuilder()
|
||||||
@@ -41,7 +42,7 @@ export = {
|
|||||||
const mod = interaction.user!
|
const mod = interaction.user!
|
||||||
const embedColor = Number(color.replace("#", "0x"))
|
const embedColor = Number(color.replace("#", "0x"))
|
||||||
|
|
||||||
const waitinglist = await waitinglistSchema.findOne({ UserID: user.id })
|
const waitinglist = await waitinglistSchema.findOne({ userID: user.id })
|
||||||
|
|
||||||
if (!waitinglist) {
|
if (!waitinglist) {
|
||||||
await interaction.editReply({
|
await interaction.editReply({
|
||||||
@@ -57,25 +58,44 @@ export = {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
await waitinglistSchema.findOneAndDelete({ UserID: user.id })
|
await waitinglistSchema.findOneAndDelete({ userID: user.id })
|
||||||
|
|
||||||
|
await logToChannel("mod", {
|
||||||
|
embeds: [{
|
||||||
|
author: {
|
||||||
|
name: mod.username,
|
||||||
|
icon_url: mod.avatarURL({ forceStatic: false }) || undefined,
|
||||||
|
},
|
||||||
|
title: "Waiting List - Remove User",
|
||||||
|
description: `
|
||||||
|
**User:** ${userMention(user.id)}
|
||||||
|
**Reason:** ${reason}
|
||||||
|
**Mod:** ${userMention(mod.id)}
|
||||||
|
`,
|
||||||
|
color: embedColor,
|
||||||
|
thumbnail: {
|
||||||
|
url: mod.avatarURL({ forceStatic: false }) || "",
|
||||||
|
},
|
||||||
|
footer: {
|
||||||
|
icon_url: user.avatarURL({ forceStatic: false }) || undefined,
|
||||||
|
text: "ID: " + user.id,
|
||||||
|
},
|
||||||
|
timestamp: new Date().toISOString()
|
||||||
|
}]
|
||||||
|
})
|
||||||
|
|
||||||
await interaction.editReply({
|
await interaction.editReply({
|
||||||
embeds: [
|
embeds: [
|
||||||
{
|
{
|
||||||
|
title: "Waiting List - Remove User",
|
||||||
description:
|
description:
|
||||||
userMention(user.id) +
|
"**User:** " + userMention(user.id) + "\n" +
|
||||||
" has been removed from the waiting list.\n" +
|
"**Reason:** `" + reason + "`",
|
||||||
"**Reason:** `" +
|
|
||||||
reason +
|
|
||||||
"`\n" +
|
|
||||||
"**Moderator:** " +
|
|
||||||
userMention(mod.id),
|
|
||||||
color: embedColor,
|
color: embedColor,
|
||||||
footer: {
|
footer: {
|
||||||
text: "User ID: " + user.id,
|
text: interaction.guild!.name + " | " + devMessage,
|
||||||
icon_url: user.displayAvatarURL({ forceStatic: false }),
|
icon_url: interaction.guild!.iconURL({ forceStatic: false }) || undefined,
|
||||||
},
|
}
|
||||||
timestamp: new Date().toISOString(),
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -35,9 +35,7 @@ export = {
|
|||||||
color: embedColor,
|
color: embedColor,
|
||||||
thumbnail: {
|
thumbnail: {
|
||||||
url:
|
url:
|
||||||
interaction?.guild?.iconURL({
|
interaction.guild!.iconURL({ forceStatic: false, }) || "",
|
||||||
forceStatic: false,
|
|
||||||
}) || "",
|
|
||||||
},
|
},
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
@@ -72,10 +70,7 @@ export = {
|
|||||||
],
|
],
|
||||||
footer: {
|
footer: {
|
||||||
text: interaction.guild!.name + " | " + devMessage,
|
text: interaction.guild!.name + " | " + devMessage,
|
||||||
icon_url:
|
icon_url: interaction.guild!.iconURL({ forceStatic: false, }) || undefined,
|
||||||
interaction.guild!.iconURL({
|
|
||||||
forceStatic: false,
|
|
||||||
}) || undefined,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -46,15 +46,11 @@ export = {
|
|||||||
description: message,
|
description: message,
|
||||||
color: embedColor,
|
color: embedColor,
|
||||||
thumbnail: {
|
thumbnail: {
|
||||||
url: interaction.guild!.iconURL({
|
url: interaction.guild!.iconURL({ forceStatic: false, }) || "",
|
||||||
forceStatic: false,
|
|
||||||
})!,
|
|
||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
text: interaction.guild!.id + " | " + devMessage,
|
text: interaction.guild!.id + " | " + devMessage,
|
||||||
icon_url:
|
icon_url: interaction.guild!.iconURL({ forceStatic: true }) || undefined,
|
||||||
interaction.guild!.iconURL({ forceStatic: true }) ||
|
|
||||||
undefined,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@@ -67,10 +63,7 @@ export = {
|
|||||||
color: embedColor,
|
color: embedColor,
|
||||||
footer: {
|
footer: {
|
||||||
text: interaction.guild!.name + " | " + devMessage,
|
text: interaction.guild!.name + " | " + devMessage,
|
||||||
icon_url:
|
icon_url: interaction.guild!.iconURL({ forceStatic: false, }) || undefined,
|
||||||
interaction.guild!.iconURL({
|
|
||||||
forceStatic: false,
|
|
||||||
}) || undefined,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -2,8 +2,11 @@ import {
|
|||||||
SlashCommandBuilder,
|
SlashCommandBuilder,
|
||||||
PermissionFlagsBits,
|
PermissionFlagsBits,
|
||||||
userMention,
|
userMention,
|
||||||
|
GuildMember,
|
||||||
} from "discord.js"
|
} from "discord.js"
|
||||||
|
import { color, devMessage } from "../../config/options.json"
|
||||||
import { Command } from "../interfaces"
|
import { Command } from "../interfaces"
|
||||||
|
import logToChannel from "../utils/functions/logtochannel"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "setnick",
|
name: "setnick",
|
||||||
@@ -31,9 +34,9 @@ export = {
|
|||||||
.setDMPermission(false),
|
.setDMPermission(false),
|
||||||
|
|
||||||
async execute(interaction) {
|
async execute(interaction) {
|
||||||
const user = interaction.options.getUser("user")!
|
const member = interaction.options.getMember("user") as GuildMember
|
||||||
const nickname = interaction.options.getString("nickname")
|
const nickname = interaction.options.getString("nickname")
|
||||||
const member = await interaction.guild!.members.fetch(user.id)
|
const embedColor = Number(color.replace("#", "0x"))
|
||||||
|
|
||||||
if (!member.manageable) {
|
if (!member.manageable) {
|
||||||
interaction.reply({
|
interaction.reply({
|
||||||
@@ -45,12 +48,39 @@ export = {
|
|||||||
|
|
||||||
await member.setNickname(nickname, `Set by ${interaction.user.tag}`)
|
await member.setNickname(nickname, `Set by ${interaction.user.tag}`)
|
||||||
|
|
||||||
|
await logToChannel("mod", {
|
||||||
|
embeds: [{
|
||||||
|
author: {
|
||||||
|
name: interaction.user.username,
|
||||||
|
icon_url: interaction.user.avatarURL({ forceStatic: false }) || undefined,
|
||||||
|
},
|
||||||
|
title: "Nickname",
|
||||||
|
description: `
|
||||||
|
**User:** ${userMention(member.id)}
|
||||||
|
**Nickname:** ${nickname}
|
||||||
|
**Moderator:** ${userMention(interaction.user.id)}
|
||||||
|
`,
|
||||||
|
color: embedColor,
|
||||||
|
thumbnail: {
|
||||||
|
url: interaction.user.avatarURL({ forceStatic: false }) || "",
|
||||||
|
},
|
||||||
|
footer: {
|
||||||
|
text: "ID: " + member.user.id,
|
||||||
|
icon_url: member.user.avatarURL({ forceStatic: false }) || undefined,
|
||||||
|
},
|
||||||
|
timestamp: new Date().toISOString()
|
||||||
|
}]
|
||||||
|
})
|
||||||
|
|
||||||
await interaction.reply({
|
await interaction.reply({
|
||||||
content:
|
embeds: [{
|
||||||
"Set the nickname of " +
|
description: `Successfully set the nickname of ${userMention(member.id)} to ${nickname}`,
|
||||||
userMention(member.id) +
|
color: embedColor,
|
||||||
" to " +
|
footer: {
|
||||||
nickname,
|
text: interaction.guild!.name + " | " + devMessage,
|
||||||
|
icon_url: interaction.guild!.iconURL({ forceStatic: false }) || undefined,
|
||||||
|
}
|
||||||
|
}],
|
||||||
ephemeral: true,
|
ephemeral: true,
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -96,206 +96,81 @@ export = {
|
|||||||
|
|
||||||
async execute(interaction) {
|
async execute(interaction) {
|
||||||
const subcommand = interaction.options.getSubcommand()
|
const subcommand = interaction.options.getSubcommand()
|
||||||
|
const channel = interaction.options.getChannel("channel") as TextChannel
|
||||||
const embedColor = Number(color.replace("#", "0x"))
|
const embedColor = Number(color.replace("#", "0x"))
|
||||||
|
let title: string = ""
|
||||||
|
let description: string = ""
|
||||||
|
let customId: string = ""
|
||||||
|
let label: string = ""
|
||||||
|
let emoji: string = ""
|
||||||
|
|
||||||
if (subcommand === "sendguildapplication") {
|
if (subcommand === "sendguildapplication") {
|
||||||
const channel = interaction.options.getChannel("channel") as TextChannel
|
title = "Guild Application"
|
||||||
|
description = "You can apply for the guild by clicking the button below."
|
||||||
await channel.send({
|
customId = "guildapply"
|
||||||
embeds: [
|
label = "Apply"
|
||||||
{
|
emoji = "✅"
|
||||||
title: "Guild Application",
|
|
||||||
description:
|
|
||||||
"You can apply for the guild by clicking the button below.",
|
|
||||||
color: embedColor,
|
|
||||||
footer: {
|
|
||||||
text: interaction.guild!.name + " | " + devMessage,
|
|
||||||
icon_url:
|
|
||||||
interaction.guild!.iconURL({
|
|
||||||
forceStatic: false,
|
|
||||||
}) || undefined,
|
|
||||||
},
|
|
||||||
thumbnail: {
|
|
||||||
url:
|
|
||||||
interaction.guild!.iconURL({
|
|
||||||
forceStatic: false,
|
|
||||||
}) || "",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
components: [
|
|
||||||
new ActionRowBuilder<ButtonBuilder>().addComponents(
|
|
||||||
new ButtonBuilder()
|
|
||||||
.setCustomId("guildapply")
|
|
||||||
.setLabel("Apply")
|
|
||||||
.setStyle(ButtonStyle.Primary)
|
|
||||||
.setEmoji({ name: "✅" }),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
})
|
|
||||||
await interaction.reply({
|
|
||||||
content: "Message sent",
|
|
||||||
ephemeral: true,
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (subcommand === "sendstaffapplication") {
|
if (subcommand === "sendstaffapplication") {
|
||||||
const channel = interaction.options.getChannel("channel") as TextChannel
|
title = "Staff Application"
|
||||||
|
description = "You can apply for the staff team by clicking the button below."
|
||||||
await channel.send({
|
customId = "staffapply"
|
||||||
embeds: [
|
label = "Apply"
|
||||||
{
|
emoji = "✅"
|
||||||
title: "Staff Application",
|
|
||||||
description:
|
|
||||||
"You can apply for the staff team by clicking the button below.",
|
|
||||||
color: embedColor,
|
|
||||||
footer: {
|
|
||||||
text: interaction.guild!.name + " | " + devMessage,
|
|
||||||
icon_url: interaction.guild!.iconURL({
|
|
||||||
forceStatic: false,
|
|
||||||
})!,
|
|
||||||
},
|
|
||||||
thumbnail: {
|
|
||||||
url: interaction.guild!.iconURL({
|
|
||||||
forceStatic: false,
|
|
||||||
})!,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
components: [
|
|
||||||
new ActionRowBuilder<ButtonBuilder>().addComponents(
|
|
||||||
new ButtonBuilder()
|
|
||||||
.setCustomId("staffapply")
|
|
||||||
.setLabel("Apply")
|
|
||||||
.setStyle(ButtonStyle.Primary)
|
|
||||||
.setEmoji({ name: "✅" }),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
})
|
|
||||||
|
|
||||||
await interaction.reply({
|
|
||||||
content: "Message sent",
|
|
||||||
ephemeral: true,
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (subcommand === "sendinactivityapplication") {
|
if (subcommand === "sendinactivityapplication") {
|
||||||
const channel = interaction.options.getChannel("channel") as TextChannel
|
title = "Inactivity Log"
|
||||||
|
description = "You can send an inactivity log by clicking the button below."
|
||||||
await channel.send({
|
customId = "guildinactivitylog"
|
||||||
embeds: [
|
label = "Submit"
|
||||||
{
|
emoji = "✅"
|
||||||
title: "Inactivity Log",
|
|
||||||
description:
|
|
||||||
"You can send an inactivity log by clicking the button below.",
|
|
||||||
color: embedColor,
|
|
||||||
footer: {
|
|
||||||
text: interaction.guild!.name + " | " + devMessage,
|
|
||||||
icon_url: interaction.guild!.iconURL({
|
|
||||||
forceStatic: false,
|
|
||||||
})!,
|
|
||||||
},
|
|
||||||
thumbnail: {
|
|
||||||
url: interaction.guild!.iconURL({
|
|
||||||
forceStatic: false,
|
|
||||||
})!,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
components: [
|
|
||||||
new ActionRowBuilder<ButtonBuilder>().addComponents(
|
|
||||||
new ButtonBuilder()
|
|
||||||
.setCustomId("guildinactivitylog")
|
|
||||||
.setLabel("Submit")
|
|
||||||
.setStyle(ButtonStyle.Primary)
|
|
||||||
.setEmoji({ name: "✅" }),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
})
|
|
||||||
|
|
||||||
await interaction.reply({
|
|
||||||
content: "Message sent",
|
|
||||||
ephemeral: true,
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (subcommand === "sendverfiymessage") {
|
if (subcommand === "sendverfiymessage") {
|
||||||
const channel = interaction.options.getChannel("channel") as TextChannel
|
title = "Verification"
|
||||||
|
description = "You can verify by clicking the button below."
|
||||||
await channel.send({
|
customId = "verify"
|
||||||
embeds: [
|
label = "Verify"
|
||||||
{
|
emoji = "✅"
|
||||||
title: "Verification",
|
|
||||||
description:
|
|
||||||
"You can verify by clicking the button below.",
|
|
||||||
color: embedColor,
|
|
||||||
footer: {
|
|
||||||
text: interaction.guild!.name + " | " + devMessage,
|
|
||||||
icon_url: interaction.guild!.iconURL({
|
|
||||||
forceStatic: false,
|
|
||||||
})!,
|
|
||||||
},
|
|
||||||
thumbnail: {
|
|
||||||
url: interaction.guild!.iconURL({
|
|
||||||
forceStatic: false,
|
|
||||||
})!,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
components: [
|
|
||||||
new ActionRowBuilder<ButtonBuilder>().addComponents(
|
|
||||||
new ButtonBuilder()
|
|
||||||
.setCustomId("verify")
|
|
||||||
.setLabel("Verify")
|
|
||||||
.setStyle(ButtonStyle.Primary)
|
|
||||||
.setEmoji({ name: "✅" }),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
})
|
|
||||||
await interaction.reply({
|
|
||||||
content: "Message sent",
|
|
||||||
ephemeral: true,
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (subcommand === "sendwaitinglistmessage") {
|
if (subcommand === "sendwaitinglistmessage") {
|
||||||
const channel = interaction.options.getChannel("channel") as TextChannel
|
title = "Waiting List"
|
||||||
|
description = "The people below were accepted into the guild\n" + "Try to invite them in order.",
|
||||||
|
customId = "waitinglistupdate"
|
||||||
|
label = "Update"
|
||||||
|
emoji = "🔄"
|
||||||
|
}
|
||||||
|
|
||||||
await channel.send({
|
await channel.send({
|
||||||
embeds: [
|
embeds: [{
|
||||||
{
|
title: title,
|
||||||
title: "Waiting List",
|
description: description,
|
||||||
description:
|
|
||||||
"The people below were accepted into the guild\n" +
|
|
||||||
"Try to invite them in order.",
|
|
||||||
color: embedColor,
|
color: embedColor,
|
||||||
|
thumbnail: {
|
||||||
|
url: interaction.guild!.iconURL({ forceStatic: false }) || "",
|
||||||
|
},
|
||||||
footer: {
|
footer: {
|
||||||
text: interaction.guild!.name + " | " + devMessage,
|
text: interaction.guild!.name + " | " + devMessage,
|
||||||
icon_url: interaction.guild!.iconURL({
|
icon_url: interaction.guild!.iconURL({ forceStatic: false }) || undefined,
|
||||||
forceStatic: false,
|
}
|
||||||
})!,
|
}],
|
||||||
},
|
|
||||||
thumbnail: {
|
|
||||||
url: interaction.guild!.iconURL({
|
|
||||||
forceStatic: false,
|
|
||||||
})!,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
components: [
|
components: [
|
||||||
new ActionRowBuilder<ButtonBuilder>().addComponents(
|
new ActionRowBuilder<ButtonBuilder>().addComponents(
|
||||||
new ButtonBuilder()
|
new ButtonBuilder()
|
||||||
.setCustomId("waitinglistupdate")
|
.setCustomId(customId)
|
||||||
.setLabel("Update")
|
.setLabel(label)
|
||||||
.setStyle(ButtonStyle.Primary)
|
.setStyle(ButtonStyle.Primary)
|
||||||
.setEmoji({ name: "🔄" }),
|
.setEmoji({ name: emoji })
|
||||||
),
|
)
|
||||||
],
|
]
|
||||||
})
|
})
|
||||||
|
|
||||||
await interaction.reply({
|
await interaction.reply({
|
||||||
content: "Message sent",
|
content: "Message sent",
|
||||||
ephemeral: true,
|
ephemeral: true,
|
||||||
})
|
})
|
||||||
}
|
|
||||||
},
|
},
|
||||||
} as Command
|
} as Command
|
||||||
|
|||||||
@@ -3,9 +3,12 @@ import {
|
|||||||
PermissionFlagsBits,
|
PermissionFlagsBits,
|
||||||
ChannelType,
|
ChannelType,
|
||||||
TextChannel,
|
TextChannel,
|
||||||
|
channelMention,
|
||||||
|
userMention,
|
||||||
} from "discord.js"
|
} from "discord.js"
|
||||||
import { color, devMessage } from "../../config/options.json"
|
import { color, devMessage } from "../../config/options.json"
|
||||||
import { Command } from "../interfaces"
|
import { Command } from "../interfaces"
|
||||||
|
import logToChannel from "../utils/functions/logtochannel"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "slowmode",
|
name: "slowmode",
|
||||||
@@ -60,6 +63,30 @@ export = {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
await logToChannel("mod", {
|
||||||
|
embeds: [{
|
||||||
|
author: {
|
||||||
|
name: interaction.user.username,
|
||||||
|
icon_url: interaction.user.avatarURL({ forceStatic: false }) || undefined,
|
||||||
|
},
|
||||||
|
title: "Slowmode Update",
|
||||||
|
description: `
|
||||||
|
**Channel:** ${channelMention(channel.id)}
|
||||||
|
**Slowmode:** ${seconds} seconds
|
||||||
|
**Mod:** ${userMention(interaction.user.id)}
|
||||||
|
`,
|
||||||
|
color: embedColor,
|
||||||
|
thumbnail: {
|
||||||
|
url: interaction.user.avatarURL({ forceStatic: false }) || "",
|
||||||
|
},
|
||||||
|
footer: {
|
||||||
|
icon_url: interaction.guild!.iconURL({ forceStatic: false }) || undefined,
|
||||||
|
text: " ID: " + channel.id
|
||||||
|
},
|
||||||
|
timestamp: new Date().toISOString()
|
||||||
|
}]
|
||||||
|
})
|
||||||
|
|
||||||
await interaction.editReply({
|
await interaction.editReply({
|
||||||
embeds: [
|
embeds: [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -61,21 +61,14 @@ export = {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const footerText = interaction.guild
|
|
||||||
? interaction.guild.name
|
|
||||||
: interaction.user.username
|
|
||||||
const footerIcon = interaction.guild
|
|
||||||
? interaction.guild.iconURL({ forceStatic: false })
|
|
||||||
: interaction.user.avatarURL({ forceStatic: false })
|
|
||||||
|
|
||||||
await interaction.reply({
|
await interaction.reply({
|
||||||
embeds: [
|
embeds: [
|
||||||
{
|
{
|
||||||
description: "This command is currently under development",
|
description: "This command is currently under development",
|
||||||
color: embedColor,
|
color: embedColor,
|
||||||
footer: {
|
footer: {
|
||||||
text: footerText + " | " + devMessage,
|
text: interaction.guild!.name + " | " + devMessage,
|
||||||
icon_url: footerIcon!,
|
icon_url: interaction.guild!.iconURL({ forceStatic: false }) || undefined,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -5,9 +5,10 @@ import {
|
|||||||
ChatInputCommandInteraction,
|
ChatInputCommandInteraction,
|
||||||
GuildMember,
|
GuildMember,
|
||||||
} from "discord.js"
|
} from "discord.js"
|
||||||
import { color } from "../../config/options.json"
|
import { color, devMessage } from "../../config/options.json"
|
||||||
import { Command } from "../interfaces"
|
import { Command } from "../interfaces"
|
||||||
import ms from "ms"
|
import ms from "ms"
|
||||||
|
import logToChannel from "../utils/functions/logtochannel"
|
||||||
|
|
||||||
const command: Command = {
|
const command: Command = {
|
||||||
name: "timeout",
|
name: "timeout",
|
||||||
@@ -117,69 +118,61 @@ const command: Command = {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let title: string = ""
|
||||||
|
let description: string = ""
|
||||||
|
let timeouttime: number | null = 0
|
||||||
if (target.isCommunicationDisabled()) {
|
if (target.isCommunicationDisabled()) {
|
||||||
if (time === 0) {
|
if (time === 0) {
|
||||||
await target.timeout(null, reason)
|
title = "Timeout Removed"
|
||||||
await interaction.editReply({
|
description = "Removed timeout of " + userMention(target.id) + " for " + reason,
|
||||||
embeds: [
|
timeouttime = null
|
||||||
{
|
} else {
|
||||||
description:
|
title = "Timeout Updated"
|
||||||
"Removed timeout of " +
|
description = "Updated timeout of " + userMention(target.id) + " to " + prettyTime + " for " + reason,
|
||||||
userMention(target.id) +
|
timeouttime = time
|
||||||
" for " +
|
}
|
||||||
reason,
|
} else {
|
||||||
color: embedColor,
|
title = "Member Timed Out"
|
||||||
footer: {
|
description = "Timed out " + userMention(target.id) + " for " + prettyTime + " for " + reason,
|
||||||
text: "ID: " + target.id,
|
timeouttime = time
|
||||||
icon_url: target.avatarURL() || undefined,
|
|
||||||
},
|
|
||||||
timestamp: new Date().toISOString(),
|
|
||||||
},
|
|
||||||
],
|
|
||||||
})
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
await target.timeout(time, reason)
|
await target.timeout(timeouttime, reason)
|
||||||
await interaction.editReply({
|
|
||||||
embeds: [
|
await logToChannel("mod", {
|
||||||
{
|
embeds: [{
|
||||||
description:
|
author: {
|
||||||
"Updated timeout of " +
|
name: mod.user.username,
|
||||||
userMention(target.id) +
|
icon_url: mod.user.avatarURL({ forceStatic: false }) || undefined,
|
||||||
" to " +
|
},
|
||||||
prettyTime +
|
title: title,
|
||||||
" for " +
|
description: `
|
||||||
reason,
|
**User:** ${userMention(target.id)}
|
||||||
color: embedColor,
|
${timeouttime === null ? "**Time:** `None`" : "**Time:** `" + prettyTime + "`"}
|
||||||
footer: {
|
**Reason:** \`${reason}\`
|
||||||
text: "ID: " + target.id,
|
**Mod:** ${userMention(mod.id)}
|
||||||
icon_url: target.avatarURL() || undefined,
|
`,
|
||||||
},
|
color: embedColor,
|
||||||
timestamp: new Date().toISOString(),
|
thumbnail: {
|
||||||
},
|
url: mod.user.avatarURL({ forceStatic: false }) || "",
|
||||||
],
|
},
|
||||||
})
|
footer: {
|
||||||
return
|
text: "ID: " + target.id,
|
||||||
}
|
icon_url: target.user.avatarURL({ forceStatic: false }) || undefined,
|
||||||
|
},
|
||||||
|
timestamp: new Date().toISOString()
|
||||||
|
}]
|
||||||
|
})
|
||||||
|
|
||||||
await target.timeout(time, reason)
|
|
||||||
await interaction.editReply({
|
await interaction.editReply({
|
||||||
embeds: [
|
embeds: [
|
||||||
{
|
{
|
||||||
description:
|
description: description,
|
||||||
"Timed out " +
|
|
||||||
userMention(target.id) +
|
|
||||||
" for " +
|
|
||||||
prettyTime +
|
|
||||||
" for " +
|
|
||||||
reason,
|
|
||||||
color: embedColor,
|
color: embedColor,
|
||||||
footer: {
|
footer: {
|
||||||
text: "ID: " + target.id,
|
text: interaction.guild!.name + " | " + devMessage,
|
||||||
icon_url: target.avatarURL() || undefined,
|
icon_url: interaction.guild!.iconURL({ forceStatic: false }) || undefined,
|
||||||
},
|
},
|
||||||
timestamp: new Date().toISOString(),
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -4,8 +4,9 @@ import {
|
|||||||
userMention,
|
userMention,
|
||||||
User,
|
User,
|
||||||
} from "discord.js"
|
} from "discord.js"
|
||||||
import { color } from "../../config/options.json"
|
import { color, devMessage } from "../../config/options.json"
|
||||||
import { Command } from "../interfaces"
|
import { Command } from "../interfaces"
|
||||||
|
import logToChannel from "../utils/functions/logtochannel"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "unban",
|
name: "unban",
|
||||||
@@ -37,11 +38,10 @@ export = {
|
|||||||
await interaction.deferReply()
|
await interaction.deferReply()
|
||||||
|
|
||||||
const userid = interaction.options.getString("user")!
|
const userid = interaction.options.getString("user")!
|
||||||
const reason =
|
const reason = interaction.options.getString("reason") || "No reason provided"
|
||||||
interaction.options.getString("reason") || "No reason provided"
|
|
||||||
const mod = interaction.user
|
const mod = interaction.user
|
||||||
const embedColor = Number(color.replace("#", "0x"))
|
const embedColor = Number(color.replace("#", "0x"))
|
||||||
let user: User | null
|
let user: User
|
||||||
|
|
||||||
if (userid === "none") {
|
if (userid === "none") {
|
||||||
await interaction.editReply({
|
await interaction.editReply({
|
||||||
@@ -66,34 +66,53 @@ export = {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
await interaction.guild!.members.unban(user!.id, reason)
|
await interaction.guild!.members.unban(user.id, reason)
|
||||||
|
|
||||||
|
await logToChannel("mod", {
|
||||||
|
embeds: [
|
||||||
|
{
|
||||||
|
author: {
|
||||||
|
name: mod.username,
|
||||||
|
icon_url: mod.avatarURL({ forceStatic: false }) || undefined,
|
||||||
|
},
|
||||||
|
title: "Member Unbanned",
|
||||||
|
description: `
|
||||||
|
**User:** ${userMention(user!.id)}
|
||||||
|
**Mod:** ${userMention(mod.id)}
|
||||||
|
**Reason:** ${reason}
|
||||||
|
`,
|
||||||
|
color: embedColor,
|
||||||
|
thumbnail: {
|
||||||
|
url: mod.avatarURL({ forceStatic: false }) || "",
|
||||||
|
},
|
||||||
|
footer: {
|
||||||
|
text: "ID: " + user!.id,
|
||||||
|
icon_url: user.avatarURL({ forceStatic: false}) || undefined,
|
||||||
|
},
|
||||||
|
timestamp: new Date().toISOString(),
|
||||||
|
},
|
||||||
|
],
|
||||||
|
})
|
||||||
|
|
||||||
await interaction.editReply({
|
await interaction.editReply({
|
||||||
embeds: [
|
embeds: [
|
||||||
{
|
{
|
||||||
title: "User unbanned",
|
title: "User unbanned",
|
||||||
description:
|
description:
|
||||||
"The user " +
|
"The user " + user!.username + " has been unbanned.\n" +
|
||||||
user!.username +
|
"**Reason:** `" + reason + "`\n" +
|
||||||
" has been unbanned.\n" +
|
"**Moderator:** " + userMention(mod.id),
|
||||||
"**Reason:** `" +
|
|
||||||
reason +
|
|
||||||
"`\n" +
|
|
||||||
"**Moderator:** " +
|
|
||||||
userMention(mod.id),
|
|
||||||
color: embedColor,
|
color: embedColor,
|
||||||
thumbnail: {
|
thumbnail: {
|
||||||
url: user!.avatarURL({ forceStatic: false }) || "",
|
url: user!.avatarURL({ forceStatic: false }) || "",
|
||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
text: "ID: " + user!.id,
|
icon_url: interaction.guild!.iconURL({ forceStatic: false, }) || undefined,
|
||||||
icon_url: interaction.guild!.iconURL({
|
text: interaction.guild!.name + " | " + devMessage,
|
||||||
forceStatic: false,
|
|
||||||
})!,
|
|
||||||
},
|
},
|
||||||
timestamp: new Date().toISOString(),
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -89,9 +89,8 @@ export = {
|
|||||||
|
|
||||||
if (guildID === hypixelGuildID) {
|
if (guildID === hypixelGuildID) {
|
||||||
const GuildMembers = guild!.members
|
const GuildMembers = guild!.members
|
||||||
const guildRank = GuildMembers.find(
|
const guildRank = GuildMembers.find( member => member.uuid === verifyData.uuid)!.rank
|
||||||
member => member.uuid === verifyData.uuid,
|
let replyRank: string | null = null
|
||||||
)!.rank
|
|
||||||
|
|
||||||
await user.roles.add(roleManage("default").rolesToAdd, "User used the update command")
|
await user.roles.add(roleManage("default").rolesToAdd, "User used the update command")
|
||||||
|
|
||||||
@@ -99,175 +98,59 @@ export = {
|
|||||||
const roles = roleManage("gm")
|
const roles = roleManage("gm")
|
||||||
await user.roles.remove(roles.rolesToRemove, "User used the update command")
|
await user.roles.remove(roles.rolesToRemove, "User used the update command")
|
||||||
await user.roles.add(roles.rolesToAdd, "User used the update command")
|
await user.roles.add(roles.rolesToAdd, "User used the update command")
|
||||||
|
replyRank = "Guild Master"
|
||||||
await interaction.editReply({
|
|
||||||
embeds: [
|
|
||||||
{
|
|
||||||
description:
|
|
||||||
"Your rank has been updated to `Guild Master`",
|
|
||||||
color: embedColor,
|
|
||||||
thumbnail: {
|
|
||||||
url: head!,
|
|
||||||
},
|
|
||||||
footer: {
|
|
||||||
text:
|
|
||||||
interaction.guild!.name +
|
|
||||||
" | " +
|
|
||||||
devMessage,
|
|
||||||
icon_url: interaction.guild!.iconURL({
|
|
||||||
forceStatic: false,
|
|
||||||
})!,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
})
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (guildRank === "Manager") {
|
if (guildRank === "Manager") {
|
||||||
const roles = roleManage("manager")
|
const roles = roleManage("manager")
|
||||||
await user.roles.remove(roles.rolesToRemove, "User used the update command")
|
await user.roles.remove(roles.rolesToRemove, "User used the update command")
|
||||||
await user.roles.add(roles.rolesToAdd, "User used the update command")
|
await user.roles.add(roles.rolesToAdd, "User used the update command")
|
||||||
|
replyRank = "Manager"
|
||||||
await interaction.editReply({
|
|
||||||
embeds: [
|
|
||||||
{
|
|
||||||
description:
|
|
||||||
"Your rank has been updated to `Manager`",
|
|
||||||
color: embedColor,
|
|
||||||
thumbnail: {
|
|
||||||
url: head!,
|
|
||||||
},
|
|
||||||
footer: {
|
|
||||||
text:
|
|
||||||
interaction.guild!.name +
|
|
||||||
" | " +
|
|
||||||
devMessage,
|
|
||||||
icon_url: interaction.guild!.iconURL({
|
|
||||||
forceStatic: false,
|
|
||||||
})!,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
})
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (guildRank === "Moderator") {
|
if (guildRank === "Moderator") {
|
||||||
const roles = roleManage("moderator")
|
const roles = roleManage("moderator")
|
||||||
await user.roles.remove(roles.rolesToRemove, "User used the update command")
|
await user.roles.remove(roles.rolesToRemove, "User used the update command")
|
||||||
await user.roles.add(roles.rolesToAdd, "User used the update command")
|
await user.roles.add(roles.rolesToAdd, "User used the update command")
|
||||||
|
replyRank = "Moderator"
|
||||||
await interaction.editReply({
|
|
||||||
embeds: [
|
|
||||||
{
|
|
||||||
description:
|
|
||||||
"Your rank has been updated to `Moderator`",
|
|
||||||
color: embedColor,
|
|
||||||
thumbnail: {
|
|
||||||
url: head!,
|
|
||||||
},
|
|
||||||
footer: {
|
|
||||||
text:
|
|
||||||
interaction.guild!.name +
|
|
||||||
" | " +
|
|
||||||
devMessage,
|
|
||||||
icon_url: interaction.guild!.iconURL({
|
|
||||||
forceStatic: false,
|
|
||||||
})!,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
})
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (guildRank === "Beast") {
|
if (guildRank === "Beast") {
|
||||||
const roles = roleManage("beast")
|
const roles = roleManage("beast")
|
||||||
await user.roles.remove(roles.rolesToRemove, "User used the update command")
|
await user.roles.remove(roles.rolesToRemove, "User used the update command")
|
||||||
await user.roles.add(roles.rolesToAdd, "User used the update command")
|
await user.roles.add(roles.rolesToAdd, "User used the update command")
|
||||||
|
replyRank = "Beast"
|
||||||
await interaction.editReply({
|
|
||||||
embeds: [
|
|
||||||
{
|
|
||||||
description:
|
|
||||||
"Your rank has been updated to `Beast`.",
|
|
||||||
color: embedColor,
|
|
||||||
thumbnail: {
|
|
||||||
url: head!,
|
|
||||||
},
|
|
||||||
footer: {
|
|
||||||
text:
|
|
||||||
interaction.guild!.name +
|
|
||||||
" | " +
|
|
||||||
devMessage,
|
|
||||||
icon_url: interaction.guild!.iconURL({
|
|
||||||
forceStatic: false,
|
|
||||||
})!,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
})
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (guildRank === "Elite") {
|
if (guildRank === "Elite") {
|
||||||
const roles = roleManage("elite")
|
const roles = roleManage("elite")
|
||||||
await user.roles.remove(roles.rolesToRemove, "User used the update command")
|
await user.roles.remove(roles.rolesToRemove, "User used the update command")
|
||||||
await user.roles.add(roles.rolesToAdd, "User used the update command")
|
await user.roles.add(roles.rolesToAdd, "User used the update command")
|
||||||
|
replyRank = "Elite"
|
||||||
await interaction.editReply({
|
|
||||||
embeds: [
|
|
||||||
{
|
|
||||||
description:
|
|
||||||
"Your rank has been updated to `Elite`.",
|
|
||||||
color: embedColor,
|
|
||||||
thumbnail: {
|
|
||||||
url: head!,
|
|
||||||
},
|
|
||||||
footer: {
|
|
||||||
text:
|
|
||||||
interaction.guild!.name +
|
|
||||||
" | " +
|
|
||||||
devMessage,
|
|
||||||
icon_url: interaction.guild!.iconURL({
|
|
||||||
forceStatic: false,
|
|
||||||
})!,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
})
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (guildRank === "Member") {
|
if (guildRank === "Member") {
|
||||||
const roles = roleManage("member")
|
const roles = roleManage("member")
|
||||||
await user.roles.remove(roles.rolesToRemove, "User used the update command")
|
await user.roles.remove(roles.rolesToRemove, "User used the update command")
|
||||||
await user.roles.add(roles.rolesToAdd, "User used the update command")
|
await user.roles.add(roles.rolesToAdd, "User used the update command")
|
||||||
|
replyRank = "Member"
|
||||||
|
}
|
||||||
|
|
||||||
await interaction.editReply({
|
await interaction.editReply({
|
||||||
embeds: [
|
embeds: [
|
||||||
{
|
{
|
||||||
description:
|
description: "Updated your roles to `" + replyRank + "`",
|
||||||
"Your rank has been updated to `Member`.",
|
|
||||||
color: embedColor,
|
color: embedColor,
|
||||||
thumbnail: {
|
thumbnail: {
|
||||||
url: head!,
|
url: head!,
|
||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
text:
|
text: interaction.guild!.name + " | " + devMessage,
|
||||||
interaction.guild!.name +
|
icon_url: interaction.guild!.iconURL({ forceStatic: false, }) || undefined,
|
||||||
" | " +
|
|
||||||
devMessage,
|
|
||||||
icon_url: interaction.guild!.iconURL({
|
|
||||||
forceStatic: false,
|
|
||||||
})!,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
} as Command
|
} as Command
|
||||||
|
|||||||
@@ -60,10 +60,7 @@ export = {
|
|||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
text: interaction.guild!.name + " | " + devMessage,
|
text: interaction.guild!.name + " | " + devMessage,
|
||||||
icon_url:
|
icon_url: interaction.guild!.iconURL({ forceStatic: false, }) || undefined,
|
||||||
interaction.guild?.iconURL({
|
|
||||||
forceStatic: false,
|
|
||||||
}) || undefined,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -233,7 +233,7 @@ export = {
|
|||||||
"`.",
|
"`.",
|
||||||
color: embedColor,
|
color: embedColor,
|
||||||
thumbnail: {
|
thumbnail: {
|
||||||
url: head || "",
|
url: head!,
|
||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
icon_url: interaction.guild!.iconURL() || undefined,
|
icon_url: interaction.guild!.iconURL() || undefined,
|
||||||
|
|||||||
@@ -54,9 +54,7 @@ export = {
|
|||||||
},
|
},
|
||||||
footer: {
|
footer: {
|
||||||
text: interaction.guild!.name + " | " + devMessage,
|
text: interaction.guild!.name + " | " + devMessage,
|
||||||
icon_url: interaction.guild!.iconURL({
|
icon_url: interaction.guild!.iconURL({ forceStatic: true, }) || undefined,
|
||||||
forceStatic: true,
|
|
||||||
})!,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user