久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

如何使用 discord.js 創(chuàng)建角色

How to create a role with discord.js(如何使用 discord.js 創(chuàng)建角色)
本文介紹了如何使用 discord.js 創(chuàng)建角色的處理方法,對大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

我一直在嘗試使用 discord.js 制作一個不和諧機(jī)器人,但我似乎找不到任何有關(guān)如何創(chuàng)建在 2018 年工作的角色的文檔.所有我能找到的工作,不再工作,因?yàn)樗麄円呀?jīng)刪除了引用的功能.在 https://discord.js.org/#/docs/main/stable/class/Role 沒有提到 createRole("role", "roleName");類型函數(shù).

I've been trying to make a discord bot using discord.js, but I can't seem to find any documentation on how to create a role that works in 2018. All the ones I can find that work, no longer work as they have removed the referenced function. In https://discord.js.org/#/docs/main/stable/class/Role there is no mention of a createRole("role", "roleName"); type function.

如果有人可以提供幫助,那就太好了!

If anyone could help that would be great!

推薦答案

Role類沒有創(chuàng)建新角色的方法,必須看Guild 上課.這是該方法的文檔鏈接:https://discord.js.org/#/docs/main/stable/class/Guild?scrollTo=createRole.如果您有任何問題,請隨時發(fā)表評論!

The class Role does not have the method to create a new role, you must look at the Guild class for that. Here is a link to the documentation for the method: https://discord.js.org/#/docs/main/stable/class/Guild?scrollTo=createRole. Feel free to comment back if you have any questions!

從 discord.js v12 開始,createRole 不再存在,請參閱上面 cecomp64 關(guān)于使用新 RoleManager對象.

這篇關(guān)于如何使用 discord.js 創(chuàng)建角色的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

discord.js v12: How do I await for messages in a DM channel?(discord.js v12:我如何等待 DM 頻道中的消息?)
how to make my bot mention the person who gave that bot command(如何讓我的機(jī)器人提及發(fā)出該機(jī)器人命令的人)
How to fix Must use import to load ES Module discord.js(如何修復(fù)必須使用導(dǎo)入來加載 ES 模塊 discord.js)
How to list all members from a specific server?(如何列出來自特定服務(wù)器的所有成員?)
Discord bot: Fix ‘FFMPEG not found’(Discord bot:修復(fù)“找不到 FFMPEG)
Welcome message when joining discord Server using discord.js(使用 discord.js 加入 discord 服務(wù)器時的歡迎消息)
主站蜘蛛池模板: 欧美精品一区二区在线观看 | 久久99精品久久久久子伦 | 亚洲另类春色偷拍在线观看 | 天天干夜夜操 | 97久久精品 | 国产成人精品午夜视频免费 | 亚洲最大的成人网 | 中文字幕一二三区 | 欧美一区二区三区在线观看视频 | 日韩精品成人免费观看视频 | 免费激情| 在线日韩欧美 | 男女av| 亚洲精品成人网 | 国产一区久久久 | 9999久久| 天堂色 | 国产激情在线看 | 精品国偷自产在线 | 色婷婷综合久久久中字幕精品久久 | 欧美在线看片 | 国产精品久久久久久久粉嫩 | 在线观看免费av网站 | 国产精品视频一区二区三区四蜜臂 | 羞羞视频免费观 | 成人a视频片观看免费 | 免费一区二区 | 成人av一区| 国产精品久久久久久久午夜片 | 在线视频成人 | 国产97碰免费视频 | 久久久精品影院 | 国产成人自拍av | 日韩一区二区三区视频在线播放 | 91视频大全 | 国产1区在线 | 国产成人精品一区二区 | 亚洲精品中文字幕av | 国产精品99久久久久久久久久久久 | 成人影视网 | www.日本在线观看 |