Skip to content

Commit 53ca8d5

Browse files
authored
Fixed Discord webhook optional handling issue (#20)
1 parent 54e6dfb commit 53ca8d5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/discord.js

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ i18n.configure({
1616
i18n.setLocale(language || 'en');
1717

1818
function post(appInfo, submissionStartDate) {
19+
if (!webhookURL) return;
1920
const status = i18n.__(appInfo.status);
2021
const message = i18n.__("Message", { appname: appInfo.name, status: status });
2122
const embed = discordEmbed(appInfo, submissionStartDate);

0 commit comments

Comments
 (0)