Error in discord bot client.user.setStatus ('idle')?

  • 0
    I run the program with a discord bot.
    client.user.setStatus ('idle')
    And it gives it out:
    TypeError: Cannot read property 'setStatus' of null
    at Object. (D: \ bot \ index.js: 81: 13)
    ? [90m at Module._compile (node: internal / modules / cjs / loader: 1102: 14)? [39m
    ? [90m at Object.Module._extensions..js (node: internal / modules / cjs / loader: 1131: 10)? [39m
    ? [90m at Module.load (node: internal / modules / cjs / loader: 967: 32)? [39m
    ? [90m at Function.Module._load (node: internal / modules / cjs / loader: 807: 14)? [39m
    ? [90m at Function.executeUserEntryPoint [as runMain] (node: internal / modules / run_main: 76: 12)? [39m
    ? [90m at node: internal / main / run_main_module: 17: 47? [39m
    JavaScript Anonymous, Feb 25, 2020

  • 1 Answers
  • 0
    remove the caps before you get banned
    Anonymous

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!