Skip to content

Commit

Permalink
fixed config
Browse files Browse the repository at this point in the history
  • Loading branch information
GhomKrosmonaute committed Oct 22, 2023
1 parent 841850b commit d2cf574
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,27 @@
import * as app from "./app.js"

export const config: app.Config = {
ignoreBots: true,
getPrefix: (message) => {
return app.prefix(message.guild)
},
client: {
intents: [
"GUILDS",
"GUILD_MEMBERS",
"GUILD_BANS",
"GUILD_EMOJIS_AND_STICKERS",
"GUILD_INTEGRATIONS",
"GUILD_WEBHOOKS",
"GUILD_INVITES",
"GUILD_VOICE_STATES",
"GUILD_PRESENCES",
"GUILD_MESSAGES",
"GUILD_MESSAGE_REACTIONS",
"GUILD_MESSAGE_TYPING",
"DIRECT_MESSAGES",
"DIRECT_MESSAGE_REACTIONS",
"DIRECT_MESSAGE_TYPING",
],
},
}
2 changes: 1 addition & 1 deletion src/namespaces/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export async function sendLog(
export async function createUser(user: { id: string }) {
await users.query.insert({
id: user.id,
is_bot: app.client.client.users.cache.get(user.id)?.bot ?? false,
is_bot: app.client.users.cache.get(user.id)?.bot ?? false,
})
}

Expand Down

0 comments on commit d2cf574

Please sign in to comment.