diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-06-29 11:45:42 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-06-29 11:45:42 -0400 |
commit | 02869547686b4658e9554712a648e94a43a11575 (patch) | |
tree | aa57c3a8905e9225492b5fd12ed9cf179f996457 | |
parent | 0cfeae3aa98bc0cf1fb93bd61641da59b3870d81 (diff) | |
download | tanzanite-02869547686b4658e9554712a648e94a43a11575.tar.gz tanzanite-02869547686b4658e9554712a648e94a43a11575.tar.bz2 tanzanite-02869547686b4658e9554712a648e94a43a11575.zip |
make extentions actually extend
-rw-r--r-- | src/lib/extensions/BushGuild.ts | 4 | ||||
-rw-r--r-- | src/lib/extensions/BushGuildMember.ts | 4 | ||||
-rw-r--r-- | src/lib/extensions/BushMessage.ts | 4 | ||||
-rw-r--r-- | src/lib/extensions/BushUser.ts | 4 |
4 files changed, 12 insertions, 4 deletions
diff --git a/src/lib/extensions/BushGuild.ts b/src/lib/extensions/BushGuild.ts index 3c04bd6..1d7b3c8 100644 --- a/src/lib/extensions/BushGuild.ts +++ b/src/lib/extensions/BushGuild.ts @@ -1,4 +1,4 @@ -import { Guild } from 'discord.js'; +import { Guild, Structures } from 'discord.js'; import { Guild as GuildDB, GuildModel } from '../models/Guild'; import { BushClient } from './BushClient'; @@ -18,3 +18,5 @@ export class BushGuild extends Guild { return await row.save(); } } + +Structures.extend('Guild', () => BushGuild); diff --git a/src/lib/extensions/BushGuildMember.ts b/src/lib/extensions/BushGuildMember.ts index d193f9e..2bb0601 100644 --- a/src/lib/extensions/BushGuildMember.ts +++ b/src/lib/extensions/BushGuildMember.ts @@ -1,4 +1,4 @@ -import { GuildMember } from 'discord.js'; +import { GuildMember, Structures } from 'discord.js'; import { BushClient } from './BushClient'; import { BushGuild } from './BushGuild'; import { BushUser } from './BushUser'; @@ -11,3 +11,5 @@ export class BushGuildMember extends GuildMember { super(client, data, guild); } } + +Structures.extend('GuildMember', () => BushGuildMember); diff --git a/src/lib/extensions/BushMessage.ts b/src/lib/extensions/BushMessage.ts index 7dbeeb2..6293c55 100644 --- a/src/lib/extensions/BushMessage.ts +++ b/src/lib/extensions/BushMessage.ts @@ -1,4 +1,4 @@ -import { DMChannel, Message, NewsChannel, TextChannel } from 'discord.js'; +import { DMChannel, Message, NewsChannel, Structures, TextChannel } from 'discord.js'; import { BushClient } from './BushClient'; import { BushCommandUtil } from './BushCommandUtil'; import { BushGuild } from './BushGuild'; @@ -17,3 +17,5 @@ export class BushMessage extends Message { this.channel = channel; } } + +Structures.extend('Message', () => BushMessage); diff --git a/src/lib/extensions/BushUser.ts b/src/lib/extensions/BushUser.ts index dd07b7d..53fd449 100644 --- a/src/lib/extensions/BushUser.ts +++ b/src/lib/extensions/BushUser.ts @@ -1,4 +1,4 @@ -import { User } from 'discord.js'; +import { Structures, User } from 'discord.js'; import { BushClient } from './BushClient'; export class BushUser extends User { @@ -15,3 +15,5 @@ export class BushUser extends User { return this.client.isSuperUser(this); } } + +Structures.extend('User', () => BushUser); |