mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
feat: added more help commands
This commit is contained in:
1 parent
feeb850ca9
commit
463af106be
13 files changed
+174
-66
No files matched your search
@@ -2,8 +2,11 @@ import { EmbedBuilder } from 'discord.js';
|
||||
import { ACCENT_COLOR } from '../../constants/colors.js';
|
||||
|
||||
export default function embedInfo(title: string, description: string) {
|
||||
return new EmbedBuilder()
|
||||
const embed = new EmbedBuilder()
|
||||
.setColor(ACCENT_COLOR)
|
||||
.setTitle(title)
|
||||
.setDescription(description);
|
||||
|
||||
if (title) embed.setTitle(title);
|
||||
|
||||
return embed;
|
||||
}
|
||||
@@ -19,7 +19,9 @@ export default async function normalizeInteractionReturnable(
|
||||
|
||||
await Promise.all(
|
||||
normalizedReturnable.map(async (item) => {
|
||||
if (item instanceof EmbedBuilder) {
|
||||
if (typeof item === 'string') {
|
||||
reply.content = item;
|
||||
} else if (item instanceof EmbedBuilder) {
|
||||
if (!reply.embeds) reply.embeds = [];
|
||||
reply.embeds.push(item);
|
||||
} else if (item instanceof ButtonBuilder) {
|
||||
|
||||
Reference in new issue
Block a user