Python 将通知设置为Read discord.py

Python 将通知设置为Read discord.py,python,python-3.x,discord.py,Python,Python 3.x,Discord.py,嘿,我需要的例子,使通知作为阅读我的代码现在 import discord from discord.ext import commands client = commands.Bot(command_prefix= '.') token = "token" @client.event async def on_ready(): print("Logged As " + client.user.name) message client.run(token, bo

嘿,我需要的例子,使通知作为阅读我的代码现在

import discord
from discord.ext import commands

client = commands.Bot(command_prefix= '.')


token = "token"

@client.event
async def on_ready():
    print("Logged As " + client.user.name)
    message





client.run(token, bot=False)
我希望它登录我的帐户,它已经完成,然后使所有的通知 如前所述

我是discord.py的新手,希望能得到一些帮助 感谢ZoneMemory

您可以等待确认某个公会中的每条消息

@client.event
async def on_ready():
    print("Logged As " + client.user.name)
    message
    for guild in client.guilds:
        await guild.ack()

它说disocrd禁止我此网站discordapp.com的所有者已暂时禁止您访问此网站。

但我可以访问该网站Discord说,如果您对某项操作进行了费率限制,则表示您在短时间内多次尝试此操作,因此您需要等待此费率限制计时器在允许您重试之前过期。遗憾的是,超时时间没有确切的预计到达时间。dodiscord.py需要多少延迟才能自动执行速率限制。更可能的情况是,你因为使用用户机器人而被禁止,这是违反不和谐TOS的。你可以尝试添加一秒钟的延迟,这应该足够了。好的,谢谢你的回答,我明天会做我需要更改我的iphone Patrick我更改了我的ip,延迟了1秒,但我仍然被禁止使用discord