Rapptz / discord.py

An API wrapper for Discord written in Python.
http://discordpy.rtfd.org/en/latest
MIT License
14.73k stars 3.74k forks source link

Replicate message with attachments #1307

Closed jatinluthra14 closed 6 years ago

jatinluthra14 commented 6 years ago

Is there a way that we can replicate a message from one channel with messages and post to other channel? Channel is not the problem but How to add the attachments to the message. For example, Here is a sample Message: Text1...... Image1 Text2...... Image2 Text3.....

How can we put a new message in exact same format?

Harmon758 commented 6 years ago

https://discordpy.readthedocs.io/en/latest/api.html#discord.Message.attachments https://discordpy.readthedocs.io/en/latest/api.html#discord.Client.send_file or for rewrite: https://discordpy.readthedocs.io/en/rewrite/api.html#discord.abc.Messageable.send

For future questions like this, you should join either the official discord.py server or the Discord API server for help, as the README recommends.

jatinluthra14 commented 6 years ago

Ok, There was a confusion that images can be there in between text. But a possibility turns out that they are always at end. So Till I Fiddle with it, The Issue can be Closed