backup push before migration to BaseStruct

This commit is contained in:
ION606
2023-04-07 19:13:15 -04:00
parent 1a048a01db
commit e6b32cc115
15 changed files with 248 additions and 68 deletions
+4 -1
View File
@@ -1,7 +1,8 @@
import axios from 'axios';
import {message} from '../messages/message.js';
import { BaseStruct } from '../baseStruct.js';
export class Channel {
export class Channel extends BaseStruct {
/** @type {String} */
id;
@@ -56,6 +57,8 @@ export class Channel {
constructor(channel, guild, token = null) {
super();
this.#token = token;
for (const k in this) {
if (channel[k]) this[k] = channel[k];