discord *list ploblem fix finally

This commit is contained in:
ChomeNS 2022-10-13 13:05:01 +07:00
parent a734e23049
commit c1ae25270a
2 changed files with 4 additions and 2 deletions

View file

@ -1,3 +1,3 @@
[
"New anti core break method (loop placing command block)"
"Discord *list fixed (finally)"
]

View file

@ -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;
}