【发布时间】:2021-04-01 15:45:54
【问题描述】:
我在 Python 中有这段代码:
import discord
client = commands.Bot(command_prefix='!')
@client.event
async def on_voice_state_update(member):
channel = client.get_channel(channels_id_where_i_want_to_send_message))
response = f'Hello {member}!'
await channel.send(response)
client.run('bots_token')
我希望机器人删除自己的消息。比如一分钟后,我该怎么做?
【问题讨论】:
标签: python bots discord.py