Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
PHP - Send message to Discord via Webhook
<?php
//=======================================================================================================
// Create new webhook in your Discord channel settings and copy&paste URL
//=======================================================================================================
$webhookurl = "YOUR_WEBHOOK_URL";
//=======================================================================================================
// Compose message. You can use Markdown
// Message Formatting -- https://discordapp.com/developers/docs/reference#message-formatting
//========================================================================================================
$timestamp = date("c", strtotime("now"));
$json_data = json_encode([
// Message
"content" => "Hello World! This is message line ;) And here is the mention, use userID <@12341234123412341>",
// Username
"username" => "krasin.space",
// Avatar URL.
// Uncoment to replace image set in webhook
//"avatar_url" => "https://ru.gravatar.com/userimage/28503754/1168e2bddca84fec2a63addb348c571d.jpg?size=512",
// Text-to-speech
"tts" => false,
// File upload
// "file" => "",
// Embeds Array
"embeds" => [
[
// Embed Title
"title" => "PHP - Send message to Discord (embeds) via Webhook",
// Embed Type
"type" => "rich",
// Embed Description
"description" => "Description will be here, someday, you can mention users here also by calling userID <@12341234123412341>",
// URL of title link
"url" => "https://gist.github.com/Mo45/cb0813cb8a6ebcd6524f6a36d4f8862c",
// Timestamp of embed must be formatted as ISO8601
"timestamp" => $timestamp,
// Embed left border color in HEX
"color" => hexdec( "3366ff" ),
// Footer
"footer" => [
"text" => "GitHub.com/Mo45",
"icon_url" => "https://ru.gravatar.com/userimage/28503754/1168e2bddca84fec2a63addb348c571d.jpg?size=375"
],
// Image to send
"image" => [
"url" => "https://ru.gravatar.com/userimage/28503754/1168e2bddca84fec2a63addb348c571d.jpg?size=600"
],
// Thumbnail
//"thumbnail" => [
// "url" => "https://ru.gravatar.com/userimage/28503754/1168e2bddca84fec2a63addb348c571d.jpg?size=400"
//],
// Author
"author" => [
"name" => "krasin.space",
"url" => "https://krasin.space/"
],
// Additional Fields array
"fields" => [
// Field 1
[
"name" => "Field #1 Name",
"value" => "Field #1 Value",
"inline" => false
],
// Field 2
[
"name" => "Field #2 Name",
"value" => "Field #2 Value",
"inline" => true
]
// Etc..
]
]
]
], JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE );
$ch = curl_init( $webhookurl );
curl_setopt( $ch, CURLOPT_HTTPHEADER, array('Content-type: application/json'));
curl_setopt( $ch, CURLOPT_POST, 1);
curl_setopt( $ch, CURLOPT_POSTFIELDS, $json_data);
curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt( $ch, CURLOPT_HEADER, 0);
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec( $ch );
// If you need to debug, or find out why you can't send message uncomment line below, and execute script.
// echo $response;
curl_close( $ch );
@hungaryck

This comment has been minimized.

Copy link

@hungaryck hungaryck commented Oct 6, 2018

Thanks! :)

@karinnahmay

This comment has been minimized.

Copy link

@karinnahmay karinnahmay commented Jan 31, 2019

Hi, tried using this style but when i print $response its empty. How can I see the response to my curl request to see errors. Thanks!

@kozlovra

This comment has been minimized.

Copy link

@kozlovra kozlovra commented Feb 22, 2019

Thanks!

@kasteckis

This comment has been minimized.

Copy link

@kasteckis kasteckis commented Nov 12, 2019

@Mo45 Any way to trigger @everyone ? :D

@Mo45

This comment has been minimized.

Copy link
Owner Author

@Mo45 Mo45 commented Nov 13, 2019

@Mo45 Any way to trigger @everyone ? :D

Hello. I'm not sure but try this.

\@everyone or <@&everyone>

@kasteckis

This comment has been minimized.

Copy link

@kasteckis kasteckis commented Nov 15, 2019

My bad, it works with the regular @everyone :)

In order for a webhook bot to tag everyone, discord server must enable ability to use @everyone tag for everyone.

@Mo45

This comment has been minimized.

Copy link
Owner Author

@Mo45 Mo45 commented Nov 23, 2019

If you can't send message and get this error: {"message": "Cannot send an empty message", "code": 50006}
After this line $ch = curl_init( $webhookurl );
You need to add new one:
curl_setopt( $ch, CURLOPT_HTTPHEADER, array('Content-type: application/json'));

@SapozhnikUA

This comment has been minimized.

Copy link

@SapozhnikUA SapozhnikUA commented Nov 30, 2019

Thanks. My webhook stopped yesterday but your code helped me to solve problem.

@piotr-placzek

This comment has been minimized.

Copy link

@piotr-placzek piotr-placzek commented Mar 1, 2020

Thanks! :)

@lowe493

This comment has been minimized.

Copy link

@lowe493 lowe493 commented Mar 2, 2020

@Mo45 do you know if this would support posting an image along with the message?

@Mo45

This comment has been minimized.

Copy link
Owner Author

@Mo45 Mo45 commented Mar 3, 2020

@Mo45 do you know if this would support posting an image along with the message?

Read about Embed Objects.

@Mo45

This comment has been minimized.

Copy link
Owner Author

@Mo45 Mo45 commented Mar 16, 2020

@lowe493 do you know if this would support posting an image along with the message?

Updated code. Now with Embed Object.

@Mo45

This comment has been minimized.

Copy link
Owner Author

@Mo45 Mo45 commented Mar 20, 2020

question, what if i want to have a contact form and whatever you type in the boxes are posted on the corresponding boxes on the webhook

You can call webhook on form submit, and send input data in additional fields array here:
"fields" => [ // Field 1 [ "name" => "Name", "value" => "$name", "inline" => false ], // Field 2 [ "name" => "email", "value" => "$email", "inline" => true ], // Field 3 [ "name" => "text", "value" => "$text", "inline" => true ] ]

@ferdisahin

This comment has been minimized.

Copy link

@ferdisahin ferdisahin commented Mar 28, 2020

Wow, thank you :)

@ProfessorVarox

This comment has been minimized.

Copy link

@ProfessorVarox ProfessorVarox commented Mar 30, 2020

Hello, I always get this error: {"message": "400: Bad Request", "code": 0}

Any ideas how to fix it?

@Mo45

This comment has been minimized.

Copy link
Owner Author

@Mo45 Mo45 commented Mar 31, 2020

Hello, I always get this error: {"message": "400: Bad Request", "code": 0}

Any ideas how to fix it?

@ProfessorVarox Are you get your webhook URL and changed this value to your URL?
$webhookurl = "YOUR_WEBHOOK_URL";

@Jimjimkewl

This comment has been minimized.

Copy link

@Jimjimkewl Jimjimkewl commented Apr 8, 2020

Hi, can you make a sample on how to mention a user with webhook and php?

@Mo45

This comment has been minimized.

Copy link
Owner Author

@Mo45 Mo45 commented Apr 9, 2020

Hi, can you make a sample on how to mention a user with webhook and php?

Updated code. Add <@12341234123412341> with userID into content or description.
You can find your userID here.
It was alredy answered almost year ago.

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Apr 21, 2020

Hi, your script is so useful, thank you !
But what should I put in "file" to upload a file ?

@Mo45

This comment has been minimized.

Copy link
Owner Author

@Mo45 Mo45 commented Apr 22, 2020

But what should I put in "file" to upload a file ?

You should put FILE. Read docs, please.

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Apr 22, 2020

I don't know what I'm doing wrong.

$json_data = json_encode([
"payload_json" => [
"content" => "content",
],
"file" => "https://upload.wikimedia.org/wikipedia/commons/thumb/2/2f/Google_2015_logo.svg/langfr-280px-Google_2015_logo.svg.png",
], JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);

$ch = curl_init($webhookurl);
curl_setopt(
$ch,
CURLOPT_HTTPHEADER,
array('Content-type: multipart/form-data','Content-Disposition: form-data; name="file"; filename="filename.png"')
);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $json_data);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

$response = curl_exec($ch);
// If you need to debug, or find out why you can't send message uncomment line below, and execute script.
echo $response;
curl_close($ch);

I get {"message": "Cannot send an empty message", "code": 50006}. I googled but couldn't find an answer.

[EDIT] : I finally got it working

@kishan-bot

This comment has been minimized.

Copy link

@kishan-bot kishan-bot commented Apr 25, 2020

I want to make form for this
My form page index.php [ form action="send.php"]
Send.Php contain this above code I used post method

Now what should I do so it again redirected back to index.Php

@Mo45

This comment has been minimized.

Copy link
Owner Author

@Mo45 Mo45 commented Apr 25, 2020

Now what should I do so it again redirected back to index.Php

Read this.

@alystair

This comment has been minimized.

Copy link

@alystair alystair commented Apr 26, 2020

Great starting point, thanks for keeping me lazy 👍

@ml1969

This comment has been minimized.

Copy link

@ml1969 ml1969 commented Apr 30, 2020

Hi Mo45, great job thanks.
I was looking for sume stuff like this, to send message direct to Discord from a php script.
One additional question.
Can I insert/ send html code?
i have to send a table with results
Michael

@RiversideRocks

This comment has been minimized.

Copy link

@RiversideRocks RiversideRocks commented Jul 17, 2020

You cannot use html, sorry.

Discord does not allow this to prevent XSS.

@esl753

This comment has been minimized.

Copy link

@esl753 esl753 commented Jul 20, 2020

if you have developer mode on you can right click a user and grab the id and use that to @ the user. It would like this <@47490920917838> and will render like this @BobTheBuilder

@PickleBranston

This comment has been minimized.

Copy link

@PickleBranston PickleBranston commented Aug 6, 2020

It's not working and I am not getting any information back from echo $response. I have tried with a fresh copy paste and only updated the webhook URL to ensure I didn't break anything but still no post and no error message. Ideas?

@esl753

This comment has been minimized.

Copy link

@esl753 esl753 commented Aug 6, 2020

Works flawless for me, are you running this local or on a server?
@PickleBranston

@PickleBranston

This comment has been minimized.

Copy link

@PickleBranston PickleBranston commented Aug 6, 2020

Works flawless for me, are you running this local or on a server?
@PickleBranston

locally

@esl753

This comment has been minimized.

Copy link

@esl753 esl753 commented Aug 6, 2020

@PickleBranston Make sure php is running

@PickleBranston

This comment has been minimized.

Copy link

@PickleBranston PickleBranston commented Aug 6, 2020

php is running fine as far as I can tell, there's no errors in the script and it prints out some random variable for me without issue. Perhaps a permission thing?

@PickleBranston

This comment has been minimized.

Copy link

@PickleBranston PickleBranston commented Aug 6, 2020

Got it working. Cannot tell you what changed though so I can't offer a solution if somebody else comes across the problem?

Thanks

@esl753

This comment has been minimized.

Copy link

@esl753 esl753 commented Aug 6, 2020

@PickleBranston Yup I was about to say that next sounds like a permission on your local machine.

@bato3

This comment has been minimized.

Copy link

@bato3 bato3 commented Sep 16, 2020

@ml1969 Instead HTML you can use MD.

@vladyxd

This comment has been minimized.

Copy link

@vladyxd vladyxd commented Oct 2, 2020

Hi! I used your code, replaced the webhookurl with my webhook url, saved the code, uploaded on my website, executed the webhook.php file (this), page just loaded with no response...
I added "echo $response;" but after some time, page loaded with no reply, only blank space.
Any ideas?

EDIT: I added if($response === TRUE){ echo "true"; } if($response === FALSE){ echo "False"; } and after running the code, i get a "False"

@RiversideRocks

This comment has been minimized.

Copy link

@RiversideRocks RiversideRocks commented Oct 2, 2020

Can you show us your error log?

@vladyxd

This comment has been minimized.

Copy link

@vladyxd vladyxd commented Oct 2, 2020

Can you show us your error log?

error log?
what do you mean?

@RiversideRocks

This comment has been minimized.

Copy link

@RiversideRocks RiversideRocks commented Oct 2, 2020

PHP stores errors and stuff that goes wrong in a file called error.log. What OS are you on?

@vladyxd

This comment has been minimized.

Copy link

@vladyxd vladyxd commented Oct 2, 2020

PHP stores errors and stuff that goes wrong in a file called error.log. What OS are you on.

windows 7

@RiversideRocks

This comment has been minimized.

Copy link

@RiversideRocks RiversideRocks commented Oct 2, 2020

Are you using XAMPP?

@vladyxd

This comment has been minimized.

Copy link

@vladyxd vladyxd commented Oct 2, 2020

Are you using XAMPP?

no, i run it on a host

@RiversideRocks

This comment has been minimized.

Copy link

@RiversideRocks RiversideRocks commented Oct 2, 2020

Oooohh, sorry, I meant what is the OS of your host? I would assume it would be under /var/log/apache2/error.log

@vladyxd

This comment has been minimized.

Copy link

@vladyxd vladyxd commented Oct 2, 2020

Oooohh, sorry, I meant what is the OS of your host? I would assume it would be under /var/log/apache2/error.log

yeah, i dont know, the thing is that im not allowed to view the error log. I dont have permissions.

@esl753

This comment has been minimized.

Copy link

@esl753 esl753 commented Oct 2, 2020

@vladyxd

This comment has been minimized.

Copy link

@vladyxd vladyxd commented Oct 2, 2020

Change permissions then

I dont have account permissions by hosting service :)

@RiversideRocks

This comment has been minimized.

Copy link

@RiversideRocks RiversideRocks commented Oct 2, 2020

Thats something you might want to contact your hosting company about. Maybe say something like:

Hello,
Can I have permissions to view my Apache error log?
@NMan1

This comment has been minimized.

Copy link

@NMan1 NMan1 commented Nov 17, 2020

I don't know what I'm doing wrong.

$json_data = json_encode([
"payload_json" => [
"content" => "content",
],
"file" => "https://upload.wikimedia.org/wikipedia/commons/thumb/2/2f/Google_2015_logo.svg/langfr-280px-Google_2015_logo.svg.png",
], JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);

$ch = curl_init($webhookurl);
curl_setopt(
$ch,
CURLOPT_HTTPHEADER,
array('Content-type: multipart/form-data','Content-Disposition: form-data; name="file"; filename="filename.png"')
);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $json_data);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

$response = curl_exec($ch);
// If you need to debug, or find out why you can't send message uncomment line below, and execute script.
echo $response;
curl_close($ch);

I get {"message": "Cannot send an empty message", "code": 50006}. I googled but couldn't find an answer.

[EDIT] : I finally got it working

Could you share your solution? I've been struggling on this for a bit

@RiversideRocks

This comment has been minimized.

Copy link

@RiversideRocks RiversideRocks commented Nov 17, 2020

Well, what does your error log say?

@KarelRuzicka

This comment has been minimized.

Copy link

@KarelRuzicka KarelRuzicka commented Nov 24, 2020

Is it possible to mention a role with this? I have tried @everyone and it works fine but when I try a specific role like @admin discord just ignores it. Thanks

@Mo45

This comment has been minimized.

Copy link
Owner Author

@Mo45 Mo45 commented Nov 24, 2020

Is it possible to mention a role with this? I have tried @everyone and it works fine but when I try a specific role like @admin discord just ignores it. Thanks

@KarelRuzicka, Just read the Docs.
In order to call role mention you need to use <@&123> with needed roleID instead of 123.

@Brandon1419

This comment has been minimized.

Copy link

@Brandon1419 Brandon1419 commented Dec 21, 2020

Hello. I am trying to use the next line "\n" in the embed but it is not working. Any tips? It does work in the "content" section.

@Mo45

This comment has been minimized.

Copy link
Owner Author

@Mo45 Mo45 commented Dec 22, 2020

Hello. I am trying to use the next line "\n" in the embed but it is not working. Any tips? It does work in the "content" section.

Maybe because Discord does not support this? Check Docs.

@ldeluigi

This comment has been minimized.

Copy link

@ldeluigi ldeluigi commented Jan 15, 2021

the username is an override too, just like the profile image, of the default. just wanted to note it.

@tothbo

This comment has been minimized.

Copy link

@tothbo tothbo commented Jan 19, 2021

Hello

I'm constantly getting this error: _{"misc": ["Only dictionaries may be used in a DictType"]} but I can't figure out what am I doing wrong. If I don't include any variables in the encoding part, it goes through, but if I put any variables into the encoding part, I just get this DictType error :/ .

My code: https://pastebin.com/CRaig1TM

@debug420

This comment has been minimized.

Copy link

@debug420 debug420 commented Jan 21, 2021

This doesnt seem to be working for me. Nothing happens. I echoed response and there was nothing in it.
Here is my error log:
::1 - - [21/Jan/2021:14:08:11 +1100] "GET /Test/send.php HTTP/1.1" 200 5
::1 - - [21/Jan/2021:14:08:11 +1100] "GET /favicon.ico HTTP/1.1" 200 202575
::1 - - [21/Jan/2021:14:08:11 +1100] "GET /Test/send.php HTTP/1.1" 200 5
::1 - - [21/Jan/2021:14:08:12 +1100] "GET /favicon.ico HTTP/1.1" 200 202575

I am using WAMP64.
Here is my code: https://pastebin.com/b89RpRTf

@RiversideRocks

This comment has been minimized.

Copy link

@RiversideRocks RiversideRocks commented Jan 21, 2021

That looks like your access log, not your error log.

@debug420

This comment has been minimized.

Copy link

@debug420 debug420 commented Jan 22, 2021

@RiversideRocks Then it appears my error log is empty. However I found this file named apache_error which contains the following:

  • Wampserver trace report -
    File created by Wampserver install
    [Thu Jan 21 13:36:12.305728 2021] [mpm_winnt:notice] [pid 9256:tid 756] AH00455: Apache/2.4.46 (Win64) PHP/7.3.21 configured -- resuming normal operations
    [Thu Jan 21 13:36:12.305728 2021] [mpm_winnt:notice] [pid 9256:tid 756] AH00456: Apache Lounge VS16 Server built: Aug 2 2020 10:21:32
    [Thu Jan 21 13:36:12.305728 2021] [core:notice] [pid 9256:tid 756] AH00094: Command line: 'c:\wamp64\bin\apache\apache2.4.46\bin\httpd.exe -d C:/wamp64/bin/apache/apache2.4.46'
    [Thu Jan 21 13:36:12.308751 2021] [mpm_winnt:notice] [pid 9256:tid 756] AH00418: Parent: Created child process 21068
    [Thu Jan 21 13:36:12.700670 2021] [mpm_winnt:notice] [pid 21068:tid 736] AH00354: Child: Starting 64 worker threads.

Anything useful?

@RiversideRocks

This comment has been minimized.

Copy link

@RiversideRocks RiversideRocks commented Jan 22, 2021

Thats odd, no errors with PHP here. Can you run the file on the cli (php yourfile)?

@Mo45

This comment has been minimized.

Copy link
Owner Author

@Mo45 Mo45 commented Jan 23, 2021

@debug420 before asking for help read doc's and re-check your code. Problem in your code:

  • Duplicated CURLOPT_HTTPHEADER line
  • Wrong $msg array
  • json_decode instead of json_encode

Here is your code

@debug420

This comment has been minimized.

Copy link

@debug420 debug420 commented Jan 23, 2021

@Mo45 The pastebin is private.
Also, I copied the entire thing and replaced the url with my webhook url. Still nothing. Here is what I executed:
https://pastebin.com/bjy1FiLF

(The webhook url is valid, I just deleted it)

@Mo45

This comment has been minimized.

Copy link
Owner Author

@Mo45 Mo45 commented Jan 23, 2021

@debug420, your code is wrong. Learn how to execute and debug. Also Discord docs.
Here is fully working code.

@debug420

This comment has been minimized.

Copy link

@debug420 debug420 commented Jan 23, 2021

@debug420, your code is wrong. Learn how to execute and debug. Also Discord docs.
Here is fully working code.

Hmm still doesnt seem to work. And I apologize, I don't use php and I'm just trying to get this to work so I can move on.
I tried hosting it too on Awardspace.com but with no luck. Any clue as to why this is occuring?
(I copied the entire code you sent and just replaced the url with my webhook)

@strawbberrys

This comment has been minimized.

Copy link

@strawbberrys strawbberrys commented Jan 31, 2021

Can you not send discord webhook requests with 000webhost? I wrote my own code and it didn't work so I came to this and this doesn't work either. It just keeps returning the webhook data you would get with a GET request, but it's not sending any data.

@ArMaaa

This comment has been minimized.

Copy link

@ArMaaa ArMaaa commented Mar 17, 2021

Just to clarify, this code works as it should work.
I'm only wondering is it possible to send reactions with this?

@Mo45

This comment has been minimized.

Copy link
Owner Author

@Mo45 Mo45 commented Mar 18, 2021

Just to clarify, this code works as it should work.
I'm only wondering is it possible to send reactions with this?

Discord documentation.

@neovorg

This comment has been minimized.

Copy link

@neovorg neovorg commented Apr 12, 2021

Works flawlessly. Thanks a lot!

@nschwaller

This comment has been minimized.

Copy link

@nschwaller nschwaller commented Apr 15, 2021

Hey i have a problem, my code run in linux but not in my IIS website.
when i display $response on my IIS server it returns false. I don't know why. My two servers are in https.
EDIT: I have var_dump($json_date) is everything is fine I do not understand
Thanks

@Mo45

This comment has been minimized.

Copy link
Owner Author

@Mo45 Mo45 commented Apr 15, 2021

@nschwaller most likely you need to install curl extension. Read your server error logs.

@nschwaller

This comment has been minimized.

Copy link

@nschwaller nschwaller commented Apr 15, 2021

i have curl in my iis server...
2021-04-15 12:19:51 152.228.218.73 GET /neverland/ - 443 - (my ip serv) Mozilla/5.0+(compatible;+Discordbot/2.0;++https://discordapp.com/) - 200 0 0 93

edit: mb this my error :
[15-Apr-2021 13:00:57 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'php_xmlrpc.dll' (tried: C:\Program Files\PHP\v8.0\ext\php_xmlrpc.dll (The specified module could not be found), C:\Program Files\PHP\v8.0\ext\php_php_xmlrpc.dll.dll (The specified module could not be found)) in Unknown on line 0
image

@RiversideRocks

This comment has been minimized.

Copy link

@RiversideRocks RiversideRocks commented May 19, 2021

@FreeStyleUK

This comment has been minimized.

Copy link

@FreeStyleUK FreeStyleUK commented Aug 21, 2021

Works brilliantly. Is it possible to send a direct message to a user using a variant of this? (Not mentioning a user, but actually private messaging them)

@RiversideRocks

This comment has been minimized.

Copy link

@RiversideRocks RiversideRocks commented Aug 22, 2021

You would need to use a discord bot to do that. (see discord.php)

@FreeStyleUK

This comment has been minimized.

Copy link

@FreeStyleUK FreeStyleUK commented Aug 22, 2021

You would need to use a discord bot to do that. (see discord.php)

Apologies if it is blatantly obvious, but where is the discord.php?

@olliedean

This comment has been minimized.

Copy link

@olliedean olliedean commented Sep 5, 2021

You would need to use a discord bot to do that. (see discord.php)

Apologies if it is blatantly obvious, but where is the discord.php?

https://github.com/discord-php/DiscordPHP

@verone0001

This comment has been minimized.

Copy link

@verone0001 verone0001 commented Sep 8, 2021

@Mo45 thank you for this, it works flawlessly! Although I couldn't make it work for .svg images, any clue?

@RiversideRocks

This comment has been minimized.

Copy link

@RiversideRocks RiversideRocks commented Sep 9, 2021

SVG images don't render on discord

@a2media-dev

This comment has been minimized.

Copy link

@a2media-dev a2media-dev commented Oct 3, 2021

try this
Webhook.php

@KingAprendis

This comment has been minimized.

Copy link

@KingAprendis KingAprendis commented Oct 7, 2021

how can i edit or delete a message sent by webhook?

@Mo45

This comment has been minimized.

Copy link
Owner Author

@Mo45 Mo45 commented Oct 8, 2021

how can i edit or delete a message sent by webhook?

Hello. This is isn't Discord API support forum =)
1min Googling give me this thread, maybe it will help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment