discord-bot/src/commands/ban.ts
2023-04-28 14:41:45 +02:00

8 lines
301 B
TypeScript

import { ban } from '../common';
import * as discord from 'discord.js';
export const roles = ['Admins', 'Moderators', 'CitraBot'];
export async function command (message: discord.Message) {
return Promise.all(message.mentions.users.map(async (user) => ban(user, message.author, message.guild)));
}