mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 06:33: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);
|
||||
let station = sstation;
|
||||
|
||||
if(!station) return;
|
||||
|
||||
const construct = {
|
||||
textChannel: client.channels.cache.get(state.channels.text),
|
||||
voiceChannel: client.channels.cache.get(state.channels.voice),
|
||||
|
Loading…
Reference in New Issue
Block a user