mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-03 22:15:37 +00:00
fix: separated types and classes
This commit is contained in:
1 parent
6dcddee2e9
commit
ea32ae6c61
42 files changed
+234
-296
No files matched your search
@@ -14,7 +14,7 @@ import { handleComponent } from '../../handlers/interactionComponentHandler';
|
||||
import { handleError } from '../../handlers/interactionErrorHandler';
|
||||
import loggerModule from '../../services/logger';
|
||||
import { ExtendedClient } from '../../types/clientTypes';
|
||||
import { CustomError } from '../../types/interactionTypes';
|
||||
import { CustomError } from '../../classes/interactions';
|
||||
|
||||
module.exports = {
|
||||
name: Events.InteractionCreate,
|
||||
|
||||
@@ -26,6 +26,7 @@ module.exports = {
|
||||
|
||||
logger.error(error, "player.events.on('error'): Player queue encountered error event");
|
||||
|
||||
// TODO: check for access to send message to channel to avoid possible DiscordAPIError - Missing Access
|
||||
await queue.metadata?.channel.send({
|
||||
embeds: [
|
||||
new EmbedBuilder()
|
||||
|
||||
Reference in new issue
Block a user