V
V
Vadim Antonov2020-04-15 12:56:45
Python
Vadim Antonov, 2020-04-15 12:56:45

How to make a discord bot send a picture from a computer?

I need the discord bot to send a picture from a PC (not from the Internet) when a certain command was sent to it (let's say !image)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Timur Pokrovsky, 2020-04-15
@StanyZz

https://discordpy.readthedocs.io/en/latest/migrati...

await channel.send('Hello', file=discord.File('cool.png', 'testing.png'))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question