Skip to content
New issue

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

Error sending multiple webhooks #34

Closed
NinoSoles opened this issue Nov 12, 2020 · 1 comment
Closed

Error sending multiple webhooks #34

NinoSoles opened this issue Nov 12, 2020 · 1 comment

Comments

@NinoSoles
Copy link

NinoSoles commented Nov 12, 2020

I receive this error when sending a webhook to multiple webhook urls

File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/requests/sessions.py", line 731, in get_adapter raise InvalidSchema("No connection adapters were found for '%s'" % url) requests.exceptions.InvalidSchema: No connection adapters were found for '['https://discordapp.com/api/xxx', 'https://discordapp.com/api/webhooks/xxx']'

My code
def send_webhook(link, quantiy, info, webhook): webhook_links = ['https://discordapp.com/api/webhooks/xxx, 'https://discordapp.com/api/webhooks/xxx'] webhook = DiscordWebhook(url=webhook) embed = DiscordEmbed(title = info[1] ,color = 242424, url=link, description='${} - Quantiy Available {}'.format(info[2], quantiy)) embed.set_thumbnail(url = info[0]) webhook.add_embed(embed) webhook.execute()

@lovvskillz
Copy link
Owner

In order to use multiple URLs, you must use at least version 0.6.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants