Indeed fixed spink

This commit is contained in:
Histmy 2021-04-20 12:50:36 +02:00
parent ba8a52370d
commit 1c1157893e

View File

@ -64,7 +64,7 @@ module.exports = {
if (mes.author.id === '831318260493844494') {
syncSpink();
if (mes.content[0] !== 's') return;
const uzivatel = mes.content.match(/(?<=discord_)\d+/)[0];
const uzivatel = mes.content.match(/(?<=discord_)\d+/)?.[0];
if (!uzivatel) return;
[...mes.client.guilds.cache.values()].forEach(guild => {
[...guild.channels.cache.values()].filter(ch => ch.type === 'voice').forEach(channel => {