/[sudobot]/trunk/src/commands/moderation/ShotCommand.ts
ViewVC logotype

Diff of /trunk/src/commands/moderation/ShotCommand.ts

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

revision 160 by rakin, Mon Jul 29 17:28:50 2024 UTC revision 163 by rakin, Mon Jul 29 17:28:50 2024 UTC
# Line 97  export default class BeanCommand extends Line 97  export default class BeanCommand extends
97    
98              await History.create(user.id, msg.guild!, 'bean', msg.member!.user.id, typeof reason === 'undefined' ? null : reason);              await History.create(user.id, msg.guild!, 'bean', msg.member!.user.id, typeof reason === 'undefined' ? null : reason);
99    
100              try {          try {
101                  await user.send({              await user.send({
102                      embeds: [                  embeds: [
103                          new MessageEmbed()                      new MessageEmbed()
104                          .setAuthor({                          .setAuthor({
105                              iconURL: <string> msg.guild!.iconURL(),                              iconURL: <string> msg.guild!.iconURL(),
106                              name: `\tYou have been beaned in ${msg.guild!.name}`                              name: `\tYou have been beaned in ${msg.guild!.name}`
# Line 111  export default class BeanCommand extends Line 111  export default class BeanCommand extends
111                                  value: typeof reason === 'undefined' ? '*No reason provided*' : reason                                  value: typeof reason === 'undefined' ? '*No reason provided*' : reason
112                              }                              }
113                          ])                          ])
114                      ]                  ]
115                  });              });
116              }              }
117              catch (e) {              catch (e) {
118                  console.log(e);                  console.log(e);

Legend:
Removed from v.160  
changed lines
  Added in v.163

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26