/[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 335 by rakin, Mon Jul 29 17:28:59 2024 UTC revision 336 by rakin, Mon Jul 29 17:29:36 2024 UTC
# Line 139  export default class BanCommand extends Line 139  export default class BanCommand extends
139                  guild_id: msg.guild!.id,                  guild_id: msg.guild!.id,
140                  mod_id: msg.member!.user.id,                  mod_id: msg.member!.user.id,
141                  mod_tag: (msg.member!.user as User).tag,                  mod_tag: (msg.member!.user as User).tag,
142                  reason: banOptions.reason ?? undefined                  reason: banOptions.reason ?? undefined,
143                    createdAt: new Date()
144              });              });
145    
146              await History.create(user.id, msg.guild!, 'ban', msg.member!.user.id, typeof banOptions.reason === 'undefined' ? null : banOptions.reason, async (data: any) => undefined);              await History.create(user.id, msg.guild!, 'ban', msg.member!.user.id, typeof banOptions.reason === 'undefined' ? null : banOptions.reason, async (data: any) => undefined);

Legend:
Removed from v.335  
changed lines
  Added in v.336

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26