Skip to content

Commit

Permalink
20231217A
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoalh committed Dec 17, 2023
1 parent fe05118 commit 9ad223e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ try {
requestHeaders.append("Content-Type", "application/json");
break;
default:
throw new Error();
throw new Error(`${method} is not a valid method!`);
}
console.log(`Post network request to Discord.`);
const response = await fetch(`https://discord.com/api/webhooks/${key}${(requestQuery.length > 0) ? `?${requestQuery}` : ""}`, {
Expand Down

0 comments on commit 9ad223e

Please sign in to comment.