Enhance bot command handling with new leveling, economy, and utility features
- Integrated leveling and economy commands, including XP management and shop interactions. - Added context menu support for utility commands, improving user interaction options. - Updated command registration to include new commands and context menus, enhancing overall functionality. - Improved logging to track the registration of commands and context menus. - Refactored interaction handling to accommodate new command types and ensure smooth execution.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import {
|
||||
SlashCommandBuilder,
|
||||
type SlashCommandAttachmentOption,
|
||||
type SlashCommandBooleanOption,
|
||||
type SlashCommandChannelOption,
|
||||
type SlashCommandRoleOption,
|
||||
type SlashCommandStringOption,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { ContextMenuCommandBuilder, ApplicationCommandType } from 'discord.js';
|
||||
import { t } from '@nexumi/shared';
|
||||
import type { BotContext, ContextMenuCommand } from '../../types.js';
|
||||
import type { ContextMenuCommand } from '../../types.js';
|
||||
import { getGuildLocale } from '../../i18n.js';
|
||||
|
||||
async function translateText(text: string, targetLang: string): Promise<string | null> {
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { EmbedBuilder, type Message, type PartialMessage } from 'discord.js';
|
||||
import { t, tf } from '@nexumi/shared';
|
||||
import type { BotContext } from '../../types.js';
|
||||
import { getGuildLocale } from '../../i18n.js';
|
||||
|
||||
const SNIPE_TTL_SECONDS = 3600;
|
||||
const DELETE_KEY_PREFIX = 'util:snipe:delete:';
|
||||
|
||||
Reference in New Issue
Block a user