【发布时间】:2021-01-22 13:26:13
【问题描述】:
我需要帮助让我的机器人工作
# Import Discord Package
import discord
# Client (our bot)
client = discord.Client()
@client.event
async def on_ready():
# DO STUFF....
general_channel = client.get_channel()
await general_channel.send('yo')
# Run the client on the server
client.run('')
当我运行它时,我得到 AttributeError: 'NoneType' object has no attribute 'send' in terminal,如果你能修复它,那将不会显示任何不和谐
【问题讨论】:
标签: python