refactor: better file structure
This commit is contained in:
parent
4fea72ad88
commit
105932b5a3
@ -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)
|
@ -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()
|
@ -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;
|
@ -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;
|
@ -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;
|
Loading…
Reference in New Issue
Block a user