wip: improve move speed on test fk
This commit is contained in:
parent
0381ee9fde
commit
b1b71ebb18
7
index.js
7
index.js
@ -205,7 +205,7 @@ client.on("interactionCreate", async (interaction) => {
|
|||||||
let str = "",
|
let str = "",
|
||||||
eCount = 0;
|
eCount = 0;
|
||||||
|
|
||||||
const logFk = async (key, member) => {
|
const logFk = async (member) => {
|
||||||
try {
|
try {
|
||||||
await member.voice.setChannel(fk);
|
await member.voice.setChannel(fk);
|
||||||
if (str.length > 0) str += ", ";
|
if (str.length > 0) str += ", ";
|
||||||
@ -218,9 +218,8 @@ client.on("interactionCreate", async (interaction) => {
|
|||||||
|
|
||||||
const processAllEntries = async () => {
|
const processAllEntries = async () => {
|
||||||
return Promise.all(
|
return Promise.all(
|
||||||
Array.from(members, async ([key, value]) => {
|
Array.from(members, async ([memberId, member]) => {
|
||||||
console.log(key, value); // what are these?
|
await logFk(member);
|
||||||
await logFk(key, value);
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user