Update releasenotes.js

This commit is contained in:
Ralph 2019-10-18 00:45:44 -04:00 committed by GitHub
parent 931bc0af8e
commit 3e3af97b43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,7 +74,7 @@ exports.releasenotes = {
msg.channel.send(message); msg.channel.send(message);
return; return;
} }
if (hasPerms(msg) && suffix === releaseTypeName + ' post') { if (hasPerms(msg) && suffix === 'android post' || 'desktop 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');
@ -115,7 +115,7 @@ exports.releasenotes = {
} }
return; return;
} }
if (hasPerms(msg) && suffix === releaseTypeName + ' post') { if (hasPerms(msg) && suffix === 'android post' || 'desktop 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]);
} }