aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/BushUser.ts
blob: 53fd449db301b1568a3f97becf1e402cb9b672d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { Structures, User } from 'discord.js';
import { BushClient } from './BushClient';

export class BushUser extends User {
	public declare client: BushClient;
	public constructor(client: BushClient, data: unknown) {
		super(client, data);
	}

	public isOwner(): boolean {
		return this.client.isOwner(this);
	}

	public isSuperUser(): boolean {
		return this.client.isSuperUser(this);
	}
}

Structures.extend('User', () => BushUser);