/[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 205 by rakin, Mon Jul 29 17:29:00 2024 UTC revision 341 by rakin, Mon Jul 29 17:29:38 2024 UTC
# Line 5  import CommandOptions from '../../types/ Line 5  import CommandOptions from '../../types/
5  import InteractionOptions from '../../types/InteractionOptions';  import InteractionOptions from '../../types/InteractionOptions';
6  import MessageEmbed from '../../client/MessageEmbed';  import MessageEmbed from '../../client/MessageEmbed';
7  import getUser from '../../utils/getUser';  import getUser from '../../utils/getUser';
 import History from '../../automod/History';  
8  import Punishment from '../../models/Punishment';  import Punishment from '../../models/Punishment';
9  import PunishmentType from '../../types/PunishmentType';  import PunishmentType from '../../types/PunishmentType';
10  import { fetchEmojiStr } from '../../utils/Emoji';  import { fetchEmojiStr } from '../../utils/Emoji';
# Line 162  export default class SoftBanCommand exte Line 161  export default class SoftBanCommand exte
161                  reason: banOptions.reason ?? undefined,                  reason: banOptions.reason ?? undefined,
162                  meta: {                  meta: {
163                      days: banOptions.days                      days: banOptions.days
164                  }                  },
165                    createdAt: new Date()
166              });              });
167    
168              await client.logger.logSoftBan(banOptions, msg.guild!, user, punishment);              await client.logger.logSoftBan(banOptions, msg.guild!, user, punishment);

Legend:
Removed from v.205  
changed lines
  Added in v.341

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26