EnragedPvP

Untitled

Feb 2nd, 2021
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. await message.channel.messages.fetch({ limit: args[0]}).then(messages =>{
  2. ^^^^^
  3.  
  4. SyntaxError: await is only valid in async functions and the top level bodies of modules
  5. at wrapSafe (node:internal/modules/cjs/loader:1024:16)
  6. at Module._compile (node:internal/modules/cjs/loader:1072:27)
  7. at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
  8. at Module.load (node:internal/modules/cjs/loader:973:32)
  9. at Function.Module._load (node:internal/modules/cjs/loader:813:14)
  10. at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12)
  11. at node:internal/main/run_main_module:17:47
Advertisement
Add Comment
Please, Sign In to add comment