Skip to content

Commit 992537d

Browse files
authored
Update DiscordWebook.cs
Blank username and avatar_url fields in request payload are causing 400 error.
1 parent e49b329 commit 992537d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: DiscordWebook.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ public DiscordWebhook()
2424

2525
public void SendMessage(string msgSend)
2626
{
27-
discordValues.Add("username", UserName);
28-
discordValues.Add("avatar_url", ProfilePicture);
27+
//discordValues.Add("username", UserName);
28+
//discordValues.Add("avatar_url", ProfilePicture);
2929
discordValues.Remove("content");
3030
discordValues.Add("content", msgSend);
3131

0 commit comments

Comments
 (0)