More small tweaks
This commit is contained in:
@@ -24,7 +24,7 @@ export default {
|
|||||||
.setContexts(InteractionContextType.Guild),
|
.setContexts(InteractionContextType.Guild),
|
||||||
|
|
||||||
async execute({ interaction }) {
|
async execute({ interaction }) {
|
||||||
await interaction.deferReply({})
|
await interaction.deferReply()
|
||||||
|
|
||||||
const ign = interaction.options.getString("ign")!
|
const ign = interaction.options.getString("ign")!
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ export default async function removeGuildRoles(interaction: ChatInputCommandInte
|
|||||||
|
|
||||||
const hypixelGuildMembers = guildData.members.map(gmember => gmember.uuid)
|
const hypixelGuildMembers = guildData.members.map(gmember => gmember.uuid)
|
||||||
|
|
||||||
const verifiedUsers = await db.query.verifies.findMany({})
|
const verifiedUsers = await db.query.verifies.findMany()
|
||||||
|
|
||||||
for (const gmember of guildMembers) {
|
for (const gmember of guildMembers) {
|
||||||
const gmemberuuid = verifiedUsers.find(user => user.userID === gmember.id)?.uuid
|
const gmemberuuid = verifiedUsers.find(user => user.userID === gmember.id)?.uuid
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ export default async function autoDeployCommands(fileType: FileType, client: Ext
|
|||||||
|
|
||||||
client.on("ready", async (c) => {
|
client.on("ready", async (c) => {
|
||||||
const guildclient = c.guilds.cache.get(env.dev.guildid)!
|
const guildclient = c.guilds.cache.get(env.dev.guildid)!
|
||||||
const currentCommands = await guildclient.commands.fetch({})
|
const currentCommands = await guildclient.commands.fetch()
|
||||||
if (!currentCommands) return
|
if (!currentCommands) return
|
||||||
|
|
||||||
const currentCommandsData = currentCommands.map(command => {
|
const currentCommandsData = currentCommands.map(command => {
|
||||||
|
|||||||
Reference in New Issue
Block a user