mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-03 22:15:37 +00:00
fix: Extract logic for getting author value for embeds
This commit is contained in:
1 parent
8c05499f08
commit
83e23d87b4
60 files changed
+126
-317
No files matched your search
@@ -1,8 +1,8 @@
|
||||
import { AutocompleteInteraction } from 'discord.js';
|
||||
import { Logger } from 'pino';
|
||||
import { BaseAutocompleteInteraction } from '../classes/interactions';
|
||||
import loggerModule from '../services/logger';
|
||||
import { ExtendedClient } from '../types/clientTypes';
|
||||
import { BaseAutocompleteInteraction } from '../classes/interactions';
|
||||
|
||||
export const handleAutocomplete = async (
|
||||
interaction: AutocompleteInteraction,
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { ChatInputCommandInteraction } from 'discord.js';
|
||||
import { Logger } from 'pino';
|
||||
import { BaseSlashCommandInteraction } from '../classes/interactions';
|
||||
import loggerModule from '../services/logger';
|
||||
import { ExtendedClient } from '../types/clientTypes';
|
||||
import { BaseSlashCommandInteraction } from '../classes/interactions';
|
||||
import { checkChannelPermissionViewable } from '../utils/validation/permissionValidator';
|
||||
|
||||
export const handleCommand = async (
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { MessageComponentInteraction } from 'discord.js';
|
||||
import { Logger } from 'pino';
|
||||
import { BaseComponentInteraction } from '../classes/interactions';
|
||||
import loggerModule from '../services/logger';
|
||||
import { ExtendedClient } from '../types/clientTypes';
|
||||
import { BaseComponentInteraction } from '../classes/interactions';
|
||||
import { checkChannelPermissionViewable } from '../utils/validation/permissionValidator';
|
||||
|
||||
export const handleComponent = async (
|
||||
|
||||
@@ -8,9 +8,9 @@ import {
|
||||
MessageComponentInteraction
|
||||
} from 'discord.js';
|
||||
import { Logger } from 'pino';
|
||||
import { CustomError, InteractionValidationError } from '../classes/interactions';
|
||||
import loggerModule from '../services/logger';
|
||||
import { BotOptions, EmbedOptions } from '../types/configTypes';
|
||||
import { CustomError, InteractionValidationError } from '../classes/interactions';
|
||||
|
||||
const embedOptions: EmbedOptions = config.get('embedOptions');
|
||||
const botOptions: BotOptions = config.get('botOptions');
|
||||
|
||||
Reference in new issue
Block a user