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

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

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

revision 427 by rakin, Mon Jul 29 17:29:59 2024 UTC revision 428 by rakin, Mon Jul 29 17:30:11 2024 UTC
# Line 149  export default class BanCommand extends Line 149  export default class BanCommand extends
149          }          }
150                    
151          try {          try {
152              await msg.guild?.bans.create(user, banOptions);              await msg.guild?.bans.create(user, { ...banOptions, reason: `[BAN] ${banOptions.reason ?? '**No reason provided**'}` });
153    
154              await Punishment.create({              await Punishment.create({
155                  type: PunishmentType.BAN,                  type: PunishmentType.BAN,

Legend:
Removed from v.427  
changed lines
  Added in v.428

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26