Lemon Snake
@WackyPythonWithaLemon1912
I suffer from "I can't find the answer no matter how long I search for it" syndrome
So I have 2 other discord.py bots on replit already, and they work fine, even after restarting them.
But I tried to make a new bot today, and it does
VulcanWM On the left side of the screen, you should see a padlock button. That is where your secrets are stored2 years ago
How do I let my discord bot ping users? I'm using it for a welcome style message. I still need to figure out how to add channel ID but the pinging pro
Python
Teslestien `@client.event
async def on_message(message):
if message.content.startswith("$summon"):
await message.channel.send(f"{message.author.mention} has been summoned.")`1 year ago
CircuitSacul Discord uses special formatting for pings: ``. With discord.py, there are two easy ways to ping a user:
If you have the ctx object (inside a command)
await ctx.send(ctx.message.author.mention)
If you have a message object (such as the on_message event)
await message.channel.send(message.author.mention)
If you know their ID
await ctx.send("")
`2 years ago