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

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

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

revision 194 by rakin, Mon Jul 29 17:28:58 2024 UTC revision 333 by rakin, Mon Jul 29 17:29:35 2024 UTC
# Line 1  Line 1 
1  import { BanOptions, CommandInteraction, GuildMember, Interaction, Message, User } from 'discord.js';  import { BanOptions, CommandInteraction, GuildMember, Interaction, Message, Permissions, User } 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';
# Line 57  export async function mute(client: Disco Line 57  export async function mute(client: Disco
57                  user_id: user.id,                  user_id: user.id,
58                  roles: roles.map(role => role.id),                  roles: roles.map(role => role.id),
59                  guild_id: msg.guild!.id,                  guild_id: msg.guild!.id,
60                    createdAt: new Date()
61              });              });
62          }          }
63    
# Line 119  export async function mute(client: Disco Line 120  export async function mute(client: Disco
120    
121  export default class MuteCommand extends BaseCommand {  export default class MuteCommand extends BaseCommand {
122      supportsInteractions: boolean = true;      supportsInteractions: boolean = true;
123        permissions = [Permissions.FLAGS.MODERATE_MEMBERS];
124    
125      constructor() {      constructor() {
126          super('mute', 'moderation', []);          super('mute', 'moderation', []);

Legend:
Removed from v.194  
changed lines
  Added in v.333

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26