aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/BotClient.ts
diff options
context:
space:
mode:
authorTymanWasTaken <32660892+tymanwastaken@users.noreply.github.com>2021-05-07 12:06:54 -0600
committerTymanWasTaken <32660892+tymanwastaken@users.noreply.github.com>2021-05-07 12:06:54 -0600
commit687559dae294cd4454600a0a7eab2f97e87e5922 (patch)
tree18009494e42e473c6951c3082c3d0474e59259e4 /src/lib/extensions/BotClient.ts
parente177e2ee61a775661e44542bc735fcf87356b87a (diff)
downloadtanzanite-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.ts15
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
}
}
},