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

Diff of /trunk/src/commands/moderation/SoftBanCommand.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 167  export default class SoftBanCommand exte Line 167  export default class SoftBanCommand exte
167                  console.log(e);                  console.log(e);
168              }              }
169                            
170              await msg.guild?.bans.create(user, banOptions);              await msg.guild?.bans.create(user, { ...banOptions, reason: `[SOFTBAN] ${banOptions.reason ?? '**No reason provided**'}` });
171              await new Promise(r => setTimeout(r, 1600));              await new Promise(r => setTimeout(r, 1600));
172              await msg.guild?.bans.remove(user);              await msg.guild?.bans.remove(user, `[SOFTBAN REMOVE] ${banOptions.reason}`);
173    
174              const punishment = await Punishment.create({              const punishment = await Punishment.create({
175                  type: PunishmentType.SOFTBAN,                  type: PunishmentType.SOFTBAN,

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26