python - Python:discord.py 1.5.1 get_user 函数总是返回 None
问题描述
同样的标题,get_user 总是返回 None,但它的姊妹函数 get_channel 没有问题
直到前几天这才成为问题
import discord
client = discord.Client()
@client.event
async def on_ready():
print(f"Logged in as {client.user}")
print(client.get_user(anyIDhere))
print(client.get_channel(anyIDhere))
client.run("token")
解决方案
推荐阅读
- laravel - 在 Laravel 中使用一组硬编码的值代替传统的 Eloquent 模型
- angular - ng测试期间的StaticInjectorError
- c# - 在 WM_MOVING 处理程序中更改窗口边界而不触发 Aero Shake
- swift - 动态调整 UITableViewCells 的大小
- excel - 如何使用 Excel 中的 Sumif() 仅计算小时数
- javascript - 将 Javascript 数组解析为 PHP 问题
- php - do_shortcode 中的 acf 字段数据未填充
- android - 如何在一项活动中停止音乐并在下一项活动中开始另一首音乐?
- session - Tensorflow-gpu(1.7) Conda 安装 - 无法创建会话
- android - PWA OAuth 登录