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

@@ -17,10 +17,11 @@ export = {
const userRoles = user.roles.cache
if (!userRoles.some(role => guildRoles.includes(role.id))) {
return await interaction.reply({
await interaction.reply({
content: "Only guild members can use this button.",
ephemeral: true
})
return
}
function sq(n: number): string {
@@ -44,10 +45,11 @@ export = {
}]
})
} catch (error) {
return await interaction.reply({
await interaction.reply({
content: "Please enable your DMs.",
ephemeral: true
})
return
}
await interaction.reply({