/[sudobot]/trunk/src/commands/automation/EmbedSchemaCommand.ts
ViewVC logotype

Diff of /trunk/src/commands/automation/EmbedSchemaCommand.ts

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 250 by rakin, Mon Jul 29 17:29:12 2024 UTC revision 344 by rakin, Mon Jul 29 17:29:40 2024 UTC
# Line 1  Line 1 
1  import { ColorResolvable, CommandInteraction, Message, Util } from 'discord.js';  import { ColorResolvable, CommandInteraction, Util } from 'discord.js';
2  import BaseCommand from '../../utils/structures/BaseCommand';  import BaseCommand from '../../utils/structures/BaseCommand';
3  import DiscordClient from '../../client/Client';  import DiscordClient from '../../client/Client';
4  import InteractionOptions from '../../types/InteractionOptions';  import InteractionOptions from '../../types/InteractionOptions';
 import MessageEmbed from '../../client/MessageEmbed';  
5    
6  export default class EmbedSchemaCommand extends BaseCommand {  export default class EmbedSchemaCommand extends BaseCommand {
7      supportsInteractions: boolean = false;      supportsInteractions: boolean = false;
# Line 60  export default class EmbedSchemaCommand Line 59  export default class EmbedSchemaCommand
59              url: getString('url'),              url: getString('url'),
60          };          };
61    
62          await interaction.reply({ content: `**Embed Schema**:\n\`\`\`json\n${JSON.stringify(embed)}\n\`\`\`\nYou can now use this schema to build embeds.` });          await interaction.reply({ content: `**Embed Schema**:\n\`\`\`\nembed:${JSON.stringify(embed)}\n\`\`\`\nYou can now use this schema to build embeds.` });
63      }      }
64  }  }

Legend:
Removed from v.250  
changed lines
  Added in v.344

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26