aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/BushUser.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/extensions/BushUser.ts')
-rw-r--r--src/lib/extensions/BushUser.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/lib/extensions/BushUser.ts b/src/lib/extensions/BushUser.ts
new file mode 100644
index 0000000..dd07b7d
--- /dev/null
+++ b/src/lib/extensions/BushUser.ts
@@ -0,0 +1,17 @@
+import { 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);
+ }
+}