Webhook with Embedded Content from discord_webhook import DiscordWebhook, DiscordEmbed webhook = DiscordWebhook ( url = 'your webhook url' ) # create embed object for webhook # you can set the color as a decimal (color=242424) or hex (color='03b2f8') number embed = DiscordEmbed ( title = 'Your Title', description = 'Lorem ipsum dolor sit', color = '03b2f8' ) # add embed object to webhook webhook. Manage being Rate Limited from discord_webhook import DiscordWebhook # if rate_limit_retry is True then in the event that you are being rate # limited by Discord your webhook will automatically be sent once the # rate limit has been lifted webhook = DiscordWebhook ( url = 'your webhook url', rate_limit_retry = True, content = 'Webhook Message' ) response = webhook. create_batch ( urls =, content = 'Webhook Message' ) response1 = webhook1. from discord_webhook import DiscordWebhook # you can provide any kwargs except url webhook1, webhook2 = DiscordWebhook. If you want to use multiple URLs you need to create multiple instances.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |