diff options
author | TymanWasTaken <32660892+tymanwastaken@users.noreply.github.com> | 2021-05-07 12:06:54 -0600 |
---|---|---|
committer | TymanWasTaken <32660892+tymanwastaken@users.noreply.github.com> | 2021-05-07 12:06:54 -0600 |
commit | 687559dae294cd4454600a0a7eab2f97e87e5922 (patch) | |
tree | 18009494e42e473c6951c3082c3d0474e59259e4 /src/lib/extensions/BotClient.ts | |
parent | e177e2ee61a775661e44542bc735fcf87356b87a (diff) | |
download | tanzanite-687559dae294cd4454600a0a7eab2f97e87e5922.tar.gz tanzanite-687559dae294cd4454600a0a7eab2f97e87e5922.tar.bz2 tanzanite-687559dae294cd4454600a0a7eab2f97e87e5922.zip |
update to tricked slash commands akairo fork
Diffstat (limited to 'src/lib/extensions/BotClient.ts')
-rw-r--r-- | src/lib/extensions/BotClient.ts | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/lib/extensions/BotClient.ts b/src/lib/extensions/BotClient.ts index 6ec45f6..7cc4fec 100644 --- a/src/lib/extensions/BotClient.ts +++ b/src/lib/extensions/BotClient.ts @@ -6,7 +6,7 @@ import { } from 'discord-akairo'; import { Guild } from 'discord.js'; import * as path from 'path'; -import { DataTypes, Model, Sequelize } from 'sequelize'; +import { DataTypes, Sequelize } from 'sequelize'; import * as Models from '../types/Models'; import { BotGuild } from './BotGuild'; import { BotMessage } from './BotMessage'; @@ -14,6 +14,7 @@ import { Util } from './Util'; import * as Tasks from '../../tasks'; import { v4 as uuidv4 } from 'uuid'; import { exit } from 'process'; +import { Intents } from 'discord.js'; export interface BotConfig { credentials: { @@ -47,10 +48,12 @@ export class BotClient extends AkairoClient { constructor(config: BotConfig) { super( { - ownerID: config.owners + ownerID: config.owners, + intents: Intents.NON_PRIVILEGED }, { - allowedMentions: { parse: ['users'] } // No everyone or role mentions by default + allowedMentions: { parse: ['users'] }, // No everyone or role mentions by default + intents: Intents.NON_PRIVILEGED } ); @@ -196,7 +199,7 @@ export class BotClient extends AkairoClient { guild: { type: DataTypes.STRING, references: { - model: Models.Guild as typeof Model + model: Models.Guild } } }, @@ -218,7 +221,7 @@ export class BotClient extends AkairoClient { type: DataTypes.STRING, allowNull: false, references: { - model: Models.Guild as typeof Model, + model: Models.Guild, key: 'id' } }, @@ -234,7 +237,7 @@ export class BotClient extends AkairoClient { type: DataTypes.STRING, allowNull: false, references: { - model: Models.Modlog as typeof Model + model: Models.Modlog } } }, |