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

Diff of /trunk/src/commands/moderation/MassBanCommand.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 344 by rakin, Mon Jul 29 17:29:40 2024 UTC
# Line 1  Line 1 
1  import { BanOptions, CommandInteraction, GuildMember, Interaction, Message, User, Permissions } from 'discord.js';  import { BanOptions, CommandInteraction, Message, User, Permissions } from 'discord.js';
2  import BaseCommand from '../../utils/structures/BaseCommand';  import BaseCommand from '../../utils/structures/BaseCommand';
3  import DiscordClient from '../../client/Client';  import DiscordClient from '../../client/Client';
4  import CommandOptions from '../../types/CommandOptions';  import CommandOptions from '../../types/CommandOptions';
5  import InteractionOptions from '../../types/InteractionOptions';  import InteractionOptions from '../../types/InteractionOptions';
6  import MessageEmbed from '../../client/MessageEmbed';  import MessageEmbed from '../../client/MessageEmbed';
 import getUser from '../../utils/getUser';  
 import History from '../../automod/History';  
7  import { fetchEmoji } from '../../utils/Emoji';  import { fetchEmoji } from '../../utils/Emoji';
8  import Punishment from '../../models/Punishment';  import Punishment from '../../models/Punishment';
9  import PunishmentType from '../../types/PunishmentType';  import PunishmentType from '../../types/PunishmentType';
# Line 130  export default class MassBanCommand exte Line 128  export default class MassBanCommand exte
128                          guild_id: msg.guild!.id,                          guild_id: msg.guild!.id,
129                          mod_id: msg.member!.user.id,                          mod_id: msg.member!.user.id,
130                          mod_tag: (msg.member!.user as User).tag,                          mod_tag: (msg.member!.user as User).tag,
131                          reason: banOptions.reason ?? undefined                          reason: banOptions.reason ?? undefined,
132                            createdAt: new Date()
133                      });                      });
134    
135                      await msg.guild!.bans.create(user, banOptions);                      await msg.guild!.bans.create(user, banOptions);

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26