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
Here I have some code that should be setting the hook's name using the keyword arguments, but for some reason the name remains unchanged.
Python Version: 3.6.9 and tested on 3.8.0
Discord Webhook version: discord-webhook==0.8.0 (from pypi)
defpost_to_webhook(self, gist_url, report_time):
logging.info("Posting the gist to the webhook...")
# Make a new webhookwebhook=DiscordWebhook(url=self.webhook_url, name=self.server)
# Create and embed and set time stamp for the embed, add it to the webhook and execute it.embed=DiscordEmbed(title="{} crashed!".format(self.server), description="Read the report here: {}".format(gist_url))
embed.set_timestamp(report_time)
webhook.add_embed(embed)
returnwebhook.execute()
And as you can see below, the embed has self.server filled appropriately, but the webhook's name does not change.
The text was updated successfully, but these errors were encountered:
Here I have some code that should be setting the hook's name using the keyword arguments, but for some reason the name remains unchanged.
Python Version:
3.6.9
and tested on3.8.0
Discord Webhook version:
discord-webhook==0.8.0
(from pypi)And as you can see below, the embed has
self.server
filled appropriately, but the webhook's name does not change.The text was updated successfully, but these errors were encountered: