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

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

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

revision 165 by rakin, Mon Jul 29 17:28:51 2024 UTC revision 167 by rakin, Mon Jul 29 17:28:51 2024 UTC
# Line 142  export default class WarnCommand extends Line 142  export default class WarnCommand extends
142              await msg.reply({              await msg.reply({
143                  embeds: [                  embeds: [
144                      new MessageEmbed()                      new MessageEmbed()
145                      .setDescription(`The user ${user.user.tag} has been warned`)                      .setDescription(`The user ${user.user.tag} has been warned` + (DMed ? "" : "\n:warning: The user has DMs disabled, so they might not know that they've been warned."))
146                      .addFields([                      .addFields([
147                          {                          {
148                              name: "Reason",                              name: "Reason",
# Line 159  export default class WarnCommand extends Line 159  export default class WarnCommand extends
159                          {                          {
160                              name: "ID",                              name: "ID",
161                              value: warning.get('id') + ''                              value: warning.get('id') + ''
162                          },                          }
                         (DMed ? ...{} : {  
                             name: "Note",  
                             value: ":warning: The user has DMs disabled, so they might not know that they've been warned."  
                         })  
163                      ])                      ])
164                  ]                  ]
165              });              });

Legend:
Removed from v.165  
changed lines
  Added in v.167

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26