File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { Events } from 'discord.js' ;
22import ts from 'typescript' ;
33import { MINUTE } from '../constants/time.js' ;
4+ import { createEvent } from '../util/events.js' ;
45import { codeBlockRegex } from '../util/message.js' ;
56import { rateLimit } from '../util/rate-limit.js' ;
6- import { createEvent } from './index.js' ;
77
88const { canRun, reset } = rateLimit ( 5 * MINUTE ) ;
99
@@ -64,7 +64,6 @@ export const hasVarEvent = createEvent(
6464 }
6565 }
6666 }
67-
6867 return ;
6968 }
7069) ;
Original file line number Diff line number Diff line change 11import { Events } from 'discord.js' ;
2- import { commands } from '../util/loaders .js' ;
3- import { createEvent } from './index .js' ;
2+ import { commands } from '../commands/index .js' ;
3+ import { createEvent } from '../util/events .js' ;
44
55export const interactionCreateEvent = createEvent (
66 {
Original file line number Diff line number Diff line change 11import { Events } from 'discord.js' ;
22import { MINUTE } from '../constants/time.js' ;
3+ import { createEvent } from '../util/events.js' ;
34import { loadMarkdownOptions } from '../util/markdown.js' ;
45import { rateLimit } from '../util/rate-limit.js' ;
5- import { createEvent } from './index.js' ;
66
77// Subject patterns (who)
88const reSubject = `(?:(?:any|some|no|every)(?:one|body)|people|folks|peeps|who)` ;
Original file line number Diff line number Diff line change 11import { Events } from 'discord.js' ;
2- import { createEvent } from './index .js' ;
2+ import { createEvent } from '../util/events .js' ;
33
44export const readyEvent = createEvent (
55 {
Original file line number Diff line number Diff line change 11import { API } from '@discordjs/core/http-only' ;
22import { REST , type RESTPutAPIApplicationCommandsResult } from 'discord.js' ;
3+ import { commands } from '../commands/index.js' ;
34import { config } from '../env.js' ;
4- import { commands } from './loaders.js' ;
55
66export async function deployCommands ( ) : Promise < RESTPutAPIApplicationCommandsResult > {
77 const commandData = [ ...commands . values ( ) ] . map ( ( command ) => command . data ) ;
You can’t perform that action at this time.
0 commit comments