Answer the question
In order to leave comments, you need to log in
How to send message to all people on server in pm discord.py?
Tried like this: ( How to make the discord bot write in private messages to everyone who is on the discord server with it, and all this with one command? )
@bot.command()
async def message_all(ctx):
for guild in bot.guilds:
for member in guild.members:
await member.send("Приветики!")
print("Отправил " + str(member))
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