mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 05:53:18 +00:00
If station is false return at restore function in Radio class
This commit is contained in:
parent
8d66dcb4ae
commit
e229b91812
@ -44,6 +44,8 @@ module.exports = class Radio extends Map {
|
|||||||
const sstation = await client.stations.search(state.station.name);
|
const sstation = await client.stations.search(state.station.name);
|
||||||
let station = sstation;
|
let station = sstation;
|
||||||
|
|
||||||
|
if(!station) return;
|
||||||
|
|
||||||
const construct = {
|
const construct = {
|
||||||
textChannel: client.channels.cache.get(state.channels.text),
|
textChannel: client.channels.cache.get(state.channels.text),
|
||||||
voiceChannel: client.channels.cache.get(state.channels.voice),
|
voiceChannel: client.channels.cache.get(state.channels.voice),
|
||||||
|
Loading…
Reference in New Issue
Block a user