If station is false return at restore function in Radio class

This commit is contained in:
Christer Warén 2021-11-29 19:04:32 +02:00
parent 8d66dcb4ae
commit e229b91812

View File

@ -44,6 +44,8 @@ module.exports = class Radio extends Map {
const sstation = await client.stations.search(state.station.name);
let station = sstation;
if(!station) return;
const construct = {
textChannel: client.channels.cache.get(state.channels.text),
voiceChannel: client.channels.cache.get(state.channels.voice),