Answer the question
In order to leave comments, you need to log in
What if after replacing message.content with message.content.startswith it stopped working?
import discord
client = discord.Client()
@client.event
async def on_message(message):
if str(message.channel) == "fludilka" and message.content.startswith == "-play":
await message.channel. purge(limit=1)
client.run('---') The
bot worked with message.content, but this option does not suit me, I found that you can write message.content.startswith, but it stopped working with it altogether
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question