Add post check for channel postings

This commit is contained in:
Ralph 2019-10-17 22:12:03 -04:00 committed by GitHub
parent 14dee76764
commit f0454fbbfb
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 === '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');
@ -99,7 +99,7 @@ exports.releasenotes = {
} }
return; return;
} }
if (hasPerms(msg) && suffix === '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]);
} }