Parent Directory
|
Revision Log
Added tempban and softban command
1 | rakin | 106 | import { User } from "discord.js"; |
2 | import DiscordClient from "../client/Client"; | ||
3 | |||
4 | export default async function tempBanRemove(client: DiscordClient, user_id: string, guild_id: string) { | ||
5 | const guild = await client.guilds.cache.get(guild_id); | ||
6 | |||
7 | if (guild) { | ||
8 | const user = <User> await client.users.fetch(user_id); | ||
9 | |||
10 | if (user) { | ||
11 | await guild.bans.remove(user, 'Remove temporary ban'); | ||
12 | } | ||
13 | } | ||
14 | } |
[email protected] | ViewVC Help |
Powered by ViewVC 1.1.26 |