Skip to content

Commit

Permalink
Use some more types
Browse files Browse the repository at this point in the history
  • Loading branch information
Glazelf committed Jan 13, 2025
1 parent bcc7769 commit 6da23d7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ import {
ApplicationCommandType,
ActivityType,
InteractionContextType,
ApplicationIntegrationType
ApplicationIntegrationType,
PresenceUpdateStatus,
AllowedMentionsTypes
} from "discord.js";
import fs from 'fs';
import path from 'path';
Expand Down Expand Up @@ -41,7 +43,7 @@ const presenceObject = {
}, {
name: "the lake theme",
type: ActivityType.Listening
}], status: "idle"
}], status: PresenceUpdateStatus
};
globalVars.presence = presenceObject;

Expand All @@ -50,7 +52,7 @@ const client = new Client({
intents: intents,
partials: partials,
allowedMentions: {
parse: ['users', 'roles'],
parse: [AllowedMentionsTypes.User, AllowedMentionsTypes.Role],
repliedUser: true
},
shards: "auto"
Expand Down

0 comments on commit 6da23d7

Please sign in to comment.