You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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']'
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()
The text was updated successfully, but these errors were encountered: