mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-27 09:35:35 -05:00
discord *list ploblem fix finally
This commit is contained in:
parent
a734e23049
commit
c1ae25270a
2 changed files with 4 additions and 2 deletions
|
@ -1,3 +1,3 @@
|
|||
[
|
||||
"New anti core break method (loop placing command block)"
|
||||
"Discord *list fixed (finally)"
|
||||
]
|
|
@ -21,7 +21,7 @@ module.exports = {
|
|||
},
|
||||
discordExecute: async function(bot, username, usernameraw, sender, prefix, args, channeldc) {
|
||||
try {
|
||||
players = '';
|
||||
let players = '';
|
||||
for (const property of bot.tabcompleteplayers) {
|
||||
if (property.match.startsWith('@')) continue;
|
||||
players += `\`${property.match}\` › \`${bot.players.getPlayer(property.match).UUID}\`` + '\n';
|
||||
|
@ -31,6 +31,8 @@ module.exports = {
|
|||
.setTitle('Players')
|
||||
.setDescription(players);
|
||||
channeldc.send({embeds: [Embed]});
|
||||
|
||||
players = '';
|
||||
} catch (e) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue