Discord.js setGame() not working anymore

后端 未结 4 1524
-上瘾入骨i
-上瘾入骨i 2021-01-19 23:20

I have been coding my Discord bot using Discord.JS for about 2 months now and I\'ve just recently noticed that my bot isn\'t saying that it\'s playing what I\'m telling it.

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-19 23:53

    The setGame() Method has stopped working, here's what you can do:

    • update to latest 11.1-dev or
    • use .setPresence({ game: { name: 'nameGoesHere', type: 0 } }); as a workaround instead

    Source: https://github.com/hydrabolt/discord.js/issues/1807#issuecomment-323578919

提交回复
热议问题