feat(economy): update content creation documentation and improve editor validation
This commit is contained in:
@@ -37,7 +37,7 @@ const btns = (disabled = false) => ([
|
||||
const isValidUrl = isValidUrlOrVariable;
|
||||
|
||||
const validateContent = (content: string | undefined | null): string => {
|
||||
if (!content || typeof content !== 'string') return "Sin contenido";
|
||||
if (!content) return "Sin contenido";
|
||||
const cleaned = content.trim();
|
||||
if (!cleaned) return "Sin contenido";
|
||||
if (cleaned.length > 4000) return cleaned.slice(0, 3997) + "...";
|
||||
|
||||
@@ -30,7 +30,7 @@ export const command: CommandMessage = {
|
||||
const guildId = message.guild!.id;
|
||||
const state: OfferState = { enabled: true, price: {}, perUserLimit: null, stock: null, metadata: {} };
|
||||
|
||||
const editorMsg = await message.channel.send({
|
||||
const editorMsg = await (message.channel as any).send({
|
||||
content: `🛒 Editor de Oferta (crear)`,
|
||||
components: [
|
||||
{ type: 1, components: [
|
||||
|
||||
Reference in New Issue
Block a user