refactor: better file structure

This commit is contained in:
Baipyrus 2024-02-06 19:12:34 +01:00
parent 4fea72ad88
commit 105932b5a3
6 changed files with 6 additions and 6 deletions

View File

@ -5,7 +5,7 @@ import {
ApplicationCommandType,
ContextMenuCommandBuilder
} from 'discord.js';
import { addSelfRoles } from '../../shared.js';
import { addSelfRoles } from '../../../../shared.js';
export const data = new ContextMenuCommandBuilder()
.setDMPermission(false)

View File

@ -1,4 +1,4 @@
import { Message } from '../../database.js';
import { Message } from '../../../../database.js';
import { ApplicationCommandType, ContextMenuCommandBuilder } from 'discord.js';
export const data = new ContextMenuCommandBuilder()

View File

@ -1,6 +1,6 @@
import { addSelfRoles } from '../../../shared.js';
import { SlashCommandBuilder } from 'discord.js';
import { Message } from './../../database.js';
import { addSelfRoles } from '../../shared.js';
import { Message } from '../../../database.js';
const createSelfRoles = async (interaction) => {
const { options, channel } = interaction;

View File

@ -1,6 +1,6 @@
import { config } from 'dotenv';
import { Events } from 'discord.js';
import { Message, RoleEmojiPair } from '../database.js';
import { Message, RoleEmojiPair } from '../../database.js';
config();
export const name = Events.MessageReactionAdd;

View File

@ -1,6 +1,6 @@
import { config } from 'dotenv';
import { Events } from 'discord.js';
import { Message, RoleEmojiPair } from '../database.js';
import { Message, RoleEmojiPair } from '../../database.js';
config();
export const name = Events.MessageReactionRemove;