/[sudobot]/branches/2.x/src/queues/tempban-remove.ts
ViewVC logotype

Contents of /branches/2.x/src/queues/tempban-remove.ts

Parent Directory Parent Directory | Revision Log Revision Log


Revision 577 - (show annotations)
Mon Jul 29 18:52:37 2024 UTC (8 months ago) by rakinar2
File MIME type: application/typescript
File size: 431 byte(s)
chore: add old version archive branches (2.x to 9.x-dev)
1 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