你好,我正在尝试制作一个不和谐的机器人来解除某人的禁令,但它给了我这个错误: Unhandled promise rejection: Error [BAN_RESOLVE_ID]: Couldn't resolve the user ID to unban.
at GuildMemberManager.unban (C:\Users\Jakub Sokol\Documents\Coding\Discord Bots\Smiley\node_modules\discord.js\src\managers\GuildMemberManager.js:210:36)
at
下面是本练习的代码:
import math
words_file = open('words.txt')
word = words_file.readline()
def avoids():
forbidden_letters = input('Enter the forbidden letters: ')
for word in words_file:
for letter in word:
if letter in forbidden_letters:
print('Forbidden'
所以,我一直在编写ban命令,刚刚完成,我开始得到这个错误。我不知道如何修复它,即使在互联网上搜索了一段时间。有人能帮我做这件事吗?
这是我正在犯的错误:
/Users/Aplex/Documents/Aplel/Commands/Moderation/ban.js:45
const Target = options.getMember("target");
^
TypeError: options.getMember is not a function
at Object.execute