This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[gRIP] Structure of Discord Webhook


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bigdaddy424
Senior Member
Join Date: Oct 2021
Location: Jupiter
Old 06-07-2023 , 16:13   [gRIP] Structure of Discord Webhook
Reply With Quote #1

See how it should look https://gist.github.com/Birdie0/78ee...f412ab5f1cdcf9

Code:
#include <amxmodx> #include <grip> "https://webhook.site/""Content-Type", "application/json""User-Agent", "big""username", "Webhook""avatar_url", "https://picsum.photos/100""content", "Text message. Up to 2000 characters.")     grip_json_object_set_value(object, "embeds", embeds_array)         grip_json_object_set_value(embeds, "author""name", "Birdie""url", "https://www.reddit.com/r/cats/""icon_url", "https://i.imgur.com/R66g1Pe.jpg""title", "Title""url", "https://google.com/""description", "Text message. You can use Markdown here. *Italic* **bold** __underline__ ~~strikeout~~ [hyperlink](<a href="https://google.com" target="_blank" rel="nofollow noopener">https://google.com</a>) `code`")         grip_json_object_set_number(embeds, "color", 15258703)         grip_json_object_set_value(embeds, "thumbnail""url", "https://picsum.photos/200")         grip_json_object_set_value(embeds, "image""url", "https://picsum.photos/800")         grip_json_object_set_value(embeds, "footer""text", "Woah! So cool! :smirk:""icon_url", "https://i.imgur.com/fKL31aD.jpg")                 grip_json_object_set_value(embeds, "fields""name", "Text""value", "More text""inline""name", "Even more text""value", "Yup""inline""name", "Use `^"": true` parameter, if you want to display fields in the same line.""value", "okay...""name", "Thanks!""value", "You're welcome :wink:""Grip_Return""ERROR: gRIP Response State Failed: Result (%d)""ERROR: gRIP Response Status Failed: Result (%d)""Response:^n%s", data)         }     } }
__________________
bigdaddy424 is offline
IC3k1ng
Senior Member
Join Date: Mar 2023
Location: Argentina
Old 07-01-2023 , 17:11   Re: [gRIP] Structure of Discord Webhook
Reply With Quote #2

Very good guide. I will star it.
__________________


IC3k1ng is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:11.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode