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

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

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

revision 253 by rakin, Mon Jul 29 17:29:13 2024 UTC revision 271 by rakin, Mon Jul 29 17:29:18 2024 UTC
# Line 8  import { emoji, fetchEmoji } from '../.. Line 8  import { emoji, fetchEmoji } from '../..
8    
9  export default class EmbedBuildCommand extends BaseCommand {  export default class EmbedBuildCommand extends BaseCommand {
10      supportsInteractions: boolean = false;      supportsInteractions: boolean = false;
11        supportsLegacy: boolean = false;
12    
13      constructor() {      constructor() {
14          super('embed__build', 'automation', []);          super('embed__build', 'automation', []);
# Line 28  export default class EmbedBuildCommand e Line 29  export default class EmbedBuildCommand e
29    
30              try {              try {
31                  const embed = new MessageEmbed(embedData);                  const embed = new MessageEmbed(embedData);
32    
33                    if (embedData.color) {
34                        try {
35                            embed.setColor(embedData.color);
36                        }
37                        catch (e) {
38                            console.log(e);
39                        }
40                    }
41                                    
42                  await message.channel?.send({                  await message.channel?.send({
43                      embeds: [embed]                      embeds: [embed]

Legend:
Removed from v.253  
changed lines
  Added in v.271

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26