generated from Baipyrus/DiscordJS-Template
refactor: better file structure
This commit is contained in:
parent
4fea72ad88
commit
105932b5a3
|
@ -5,7 +5,7 @@ import {
|
||||||
ApplicationCommandType,
|
ApplicationCommandType,
|
||||||
ContextMenuCommandBuilder
|
ContextMenuCommandBuilder
|
||||||
} from 'discord.js';
|
} from 'discord.js';
|
||||||
import { addSelfRoles } from '../../shared.js';
|
import { addSelfRoles } from '../../../../shared.js';
|
||||||
|
|
||||||
export const data = new ContextMenuCommandBuilder()
|
export const data = new ContextMenuCommandBuilder()
|
||||||
.setDMPermission(false)
|
.setDMPermission(false)
|
|
@ -1,4 +1,4 @@
|
||||||
import { Message } from '../../database.js';
|
import { Message } from '../../../../database.js';
|
||||||
import { ApplicationCommandType, ContextMenuCommandBuilder } from 'discord.js';
|
import { ApplicationCommandType, ContextMenuCommandBuilder } from 'discord.js';
|
||||||
|
|
||||||
export const data = new ContextMenuCommandBuilder()
|
export const data = new ContextMenuCommandBuilder()
|
|
@ -1,6 +1,6 @@
|
||||||
|
import { addSelfRoles } from '../../../shared.js';
|
||||||
import { SlashCommandBuilder } from 'discord.js';
|
import { SlashCommandBuilder } from 'discord.js';
|
||||||
import { Message } from './../../database.js';
|
import { Message } from '../../../database.js';
|
||||||
import { addSelfRoles } from '../../shared.js';
|
|
||||||
|
|
||||||
const createSelfRoles = async (interaction) => {
|
const createSelfRoles = async (interaction) => {
|
||||||
const { options, channel } = interaction;
|
const { options, channel } = interaction;
|
|
@ -1,6 +1,6 @@
|
||||||
import { config } from 'dotenv';
|
import { config } from 'dotenv';
|
||||||
import { Events } from 'discord.js';
|
import { Events } from 'discord.js';
|
||||||
import { Message, RoleEmojiPair } from '../database.js';
|
import { Message, RoleEmojiPair } from '../../database.js';
|
||||||
config();
|
config();
|
||||||
|
|
||||||
export const name = Events.MessageReactionAdd;
|
export const name = Events.MessageReactionAdd;
|
|
@ -1,6 +1,6 @@
|
||||||
import { config } from 'dotenv';
|
import { config } from 'dotenv';
|
||||||
import { Events } from 'discord.js';
|
import { Events } from 'discord.js';
|
||||||
import { Message, RoleEmojiPair } from '../database.js';
|
import { Message, RoleEmojiPair } from '../../database.js';
|
||||||
config();
|
config();
|
||||||
|
|
||||||
export const name = Events.MessageReactionRemove;
|
export const name = Events.MessageReactionRemove;
|
Loading…
Reference in New Issue
Block a user