Update releasenotes.js

This commit is contained in:
Ralph 2019-10-17 23:02:37 -04:00 committed by GitHub
parent f0454fbbfb
commit e37c4fcf2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,7 +58,7 @@ exports.releasenotes = {
msg.channel.send(message); msg.channel.send(message);
return; return;
} }
if (hasPerms(msg) && suffix === ' android post' || 'desktop post') { if (hasPerms(msg) && suffix === releaseTypeName + ' post') {
bot.channels.get(ChannelID).send(message); bot.channels.get(ChannelID).send(message);
} else { } else {
msg.channel.send(msg.author + ' Release notes sent via DM'); msg.channel.send(msg.author + ' Release notes sent via DM');
@ -99,7 +99,7 @@ exports.releasenotes = {
} }
return; return;
} }
if (hasPerms(msg) && suffix === 'android post' || 'desktop post') { if (hasPerms(msg) && suffix === releaseTypeName + ' post') {
for (let i = 0; i < embedmessages.length; i++) { for (let i = 0; i < embedmessages.length; i++) {
bot.channels.get(ChannelID).send(embedmessages[i]); bot.channels.get(ChannelID).send(embedmessages[i]);
} }