try to fix presence

This commit is contained in:
Ryan Cao 2022-06-11 16:17:10 +08:00
parent c8fc4a7b7d
commit 670bcd4e0d
No known key found for this signature in database
GPG key ID: 528A2C1B6656B97F

View file

@ -78,11 +78,10 @@ client.once('ready', async () => {
)
);
if (client.user) {
client.user.presence.set({
client.user?.presence.set({
activities: [{ name: `Minecraft ${await getLatestMinecraft()}` }],
status: 'online',
});
}
client.on('messageCreate', async (e) => {
if (!e.content) return;