mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 11:53:16 +00:00
Update saveRadios function
This commit is contained in:
parent
a43a788e15
commit
24478b6320
@ -4,9 +4,10 @@ module.exports = function saveRadios(client) {
|
|||||||
|
|
||||||
while (!radio.done) {
|
while (!radio.done) {
|
||||||
let currentRadio = client.radio.get(radio.value);
|
let currentRadio = client.radio.get(radio.value);
|
||||||
currentRadio.guild = client.datastore.getEntry(radio.value).guild;
|
|
||||||
|
|
||||||
if (currentRadio) {
|
if (currentRadio) {
|
||||||
|
currentRadio.guild = client.datastore.getEntry(radio.value).guild;
|
||||||
|
|
||||||
client.funcs.statisticsUpdate(client, currentRadio.guild, currentRadio);
|
client.funcs.statisticsUpdate(client, currentRadio.guild, currentRadio);
|
||||||
client.funcs.saveState(client, currentRadio.guild, currentRadio);
|
client.funcs.saveState(client, currentRadio.guild, currentRadio);
|
||||||
currentRadio.connection?.destroy();
|
currentRadio.connection?.destroy();
|
||||||
|
Loading…
Reference in New Issue
Block a user