mirror of
https://github.com/ION606/custom_discordjs.git
synced 2026-05-14 22:26:54 +00:00
backup push before migration to BaseStruct
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user