diff options
Diffstat (limited to 'src')
-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); |