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 am creating a thread and intend to send several responses to that newly created thread.
But I can't get the thread ID, even though the code successfully creates the thread.
Is there something I'm doing wrong? Or is it an unavailable function?
defdiscord(media_path, name):
body="Puedes apoyarme"try:
webhook=DiscordWebhook(url=config['discord']['webhook_thread'], content=body, thread_name=f"Pestañas de la Tienda del dia: {kasstime}")
temp_image_path=f"{name}_discord_resized.jpg"resize_image_discord(media_path, temp_image_path)
withopen(temp_image_path, "rb") asshopImage:
webhook.add_file(file=shopImage.read(), filename='tienda.jpg')
response=webhook.execute()
print("Enviado con Éxito a Discord")
print(webhook)
print(webhook.thread_id)
returnwebhook.thread_idexceptExceptionase:
print(f"Error al enviar la tienda de objetos a Discord, {e}")
returnNone
Enviado con Éxito a Discord
<discord_webhook.webhook.DiscordWebhook object at 0x106d9b500>
None
The text was updated successfully, but these errors were encountered:
I am creating a thread and intend to send several responses to that newly created thread.
But I can't get the thread ID, even though the code successfully creates the thread.
Is there something I'm doing wrong? Or is it an unavailable function?
The text was updated successfully, but these errors were encountered: