Skip to content

Commit

Permalink
fix: set activity with ClientOptions (#520)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mogyuchi authored Aug 19, 2024
1 parent a2ee1a7 commit 85fa8cf
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ const client = new Client({
GatewayIntentBits.GuildVoiceStates,
GatewayIntentBits.MessageContent,
],
presence: {
activities: [
{
type: ActivityType.Custom,
name: `v${OM_VERSION}`,
},
],
},
});

client.on(Events.InteractionCreate, async (interaction) => {
Expand Down Expand Up @@ -62,10 +70,6 @@ client.once(Events.ClientReady, async (client) => {
leave.definition,
skip.definition,
]);
client.user.setActivity({
type: ActivityType.Custom,
name: `v${OM_VERSION}`,
});
});

function shutdown() {
Expand Down

0 comments on commit 85fa8cf

Please sign in to comment.