第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

不和諧.js令牌登錄問(wèn)題

不和諧.js令牌登錄問(wèn)題

翻閱古今 2022-08-18 10:01:15
我的機(jī)器人不會(huì)聯(lián)機(jī),即使我重新生成令牌也是如此。我試圖放一個(gè)捕獲塊,但沒(méi)有任何變化。問(wèn)題是我的電腦嗎 ? 腳本 ?還是我的節(jié)點(diǎn)版本(最后一個(gè) LTS 版本)?我希望你有時(shí)間回答我!這是錯(cuò)誤:    (node:1976) UnhandledPromiseRejectionWarning: Error: Incorrect login details were provided.    at WebSocketConnection.<anonymous> (C:\Users\Atelier34bc\Documents\mpbot\node_modules\discord.js\src\client\ClientManager.js:48:41)    at Object.onceWrapper (events.js:417:26)    at WebSocketConnection.emit (events.js:310:20)    at WebSocketConnection.onClose (C:\Users\Atelier34bc\Documents\mpbot\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:390:10)    at WebSocket.onClose (C:\Users\Atelier34bc\Documents\mpbot\node_modules\ws\lib\event-target.js:124:16)    at WebSocket.emit (events.js:310:20)    at WebSocket.emitClose (C:\Users\Atelier34bc\Documents\mpbot\node_modules\ws\lib\websocket.js:191:10)    at TLSSocket.socketOnClose (C:\Users\Atelier34bc\Documents\mpbot\node_modules\ws\lib\websocket.js:850:15)    at TLSSocket.emit (events.js:322:22)    at net.js:672:12(node:1976) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)(node:1976) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.這是我的腳本:const bot = new Discord.Client()const PREFIX = "$"const token = 'my_token'bot.on('ready', () => {    console.log('bot is online')})
查看完整描述

1 回答

?
眼眸繁星

TA貢獻(xiàn)1873條經(jīng)驗(yàn) 獲得超9個(gè)贊

我嘗試了我自己的機(jī)器人代碼,它工作正常,你有沒(méi)有檢查你使用的是機(jī)器人令牌而不是客戶端ID?


查看完整回答
反對(duì) 回復(fù) 2022-08-18
  • 1 回答
  • 0 關(guān)注
  • 110 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)