try to fix presence
This commit is contained in:
parent
c8fc4a7b7d
commit
670bcd4e0d
1 changed files with 4 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue