We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Files uploaded via webhook with embedded payload suddenly stopped showing the file in the message for no apparent reason.
.7z
from discord_webhook import DiscordWebhook def upload_file(fpath): embeds = [ { "fields": [ { "name": "RGAC File Upload", "value": 'TEST' } ], "color": 0xeaddca, "title": "RGAC Session File", "image": { "url": "attachment://{}".format(os.path.basename(fpath)) }, "footer": { "text": "Captured by RGAC system" }, "thumbnail": { "url": THUMB, } } ] webhook = WEBHOOK wh = DiscordWebhook( url=webhook, embeds=embeds, ) with open(fpath, "rb") as f: wh.add_file(file=f.read(), filename=os.path.basename(fpath)) try: wh.execute() except: err = traceback.format_exc() print(err) return 1 return 0
** The illustration is pointing to where the file was meant to be shown
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Files uploaded via webhook with embedded payload suddenly stopped showing the file in the message for no apparent reason.
.7z
** The illustration is pointing to where the file was meant to be shown
The text was updated successfully, but these errors were encountered: