Moved from mongodb to sql and sqlite

This commit is contained in:
2024-04-09 21:59:52 +02:00
parent 27b01d0c36
commit ef5c531964
42 changed files with 1645 additions and 198 deletions

View File

@@ -1,6 +1,6 @@
import { EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle, Message, GuildMember } from "discord.js"
import { embedColor } from "config/options"
import guildapp from "schemas/guildAppSchema"
import guildapp from "schemas/guildAppTag"
import { IModal } from "interfaces"
export = {
@@ -78,7 +78,8 @@ export = {
responseEmbeds = [responseEmbed]
}
await guildapp.findOneAndDelete({ userID: applicantId })
const app = await guildapp.findOne({ where: { userID: applicantId } })
await app?.destroy()
await interaction.editReply({
embeds: responseEmbeds