diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-06-27 18:08:14 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-06-27 18:08:14 -0400 |
commit | 747b3c8302245699294b671d19b3d31d63f80bc1 (patch) | |
tree | ad3d987bb38d5bdaed67e6aca1263fb06331f746 /src/lib/extensions/BushUser.ts | |
parent | 4176b6258e44e4a095376aaf0f4c687244243a69 (diff) | |
download | tanzanite-747b3c8302245699294b671d19b3d31d63f80bc1.tar.gz tanzanite-747b3c8302245699294b671d19b3d31d63f80bc1.tar.bz2 tanzanite-747b3c8302245699294b671d19b3d31d63f80bc1.zip |
did this a while ago so I don't remeber what I did
Diffstat (limited to 'src/lib/extensions/BushUser.ts')
-rw-r--r-- | src/lib/extensions/BushUser.ts | 17 |
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); + } +} |