export default class Util { static shorten(text: string, maxLen = 2000) { return text.length > maxLen ? `${text.substr(0, maxLen - 3)}...` : text; } static canModifyQueue(member) { const { channel } = member.voice; const botChannel = member.guild.me.voice.channel; if (channel !== botChannel) { member.send('You need to join the voice channel first!'); // error return false; } return false; } }