消息删除消息Discord.py
On message delete message Discord.py
import discord
import asyncio
client = discord.Client()
@client.event
async def on_ready():
print ("I’m Now Online")
@client.event
async def on_message(message):
if message.author == client.user:
return
elif message.content.startswith("deletethis"):
我想知道如何在消息作者发送上述命令时添加到此以删除上述命令。
有人可以帮忙创建一个吗?我已经用脑子试过了,但没有在网上找到任何东西,所以我可能正在寻找一些帮助。
import discord
import asyncio
client = discord.Client()
@client.event
async def on_ready():
print ("I’m Now Online")
@client.event
async def on_message(message):
if message.author == client.user:
return
elif message.content.startswith("deletethis"):
我想知道如何在消息作者发送上述命令时添加到此以删除上述命令。 有人可以帮忙创建一个吗?我已经用脑子试过了,但没有在网上找到任何东西,所以我可能正在寻找一些帮助。