Merge remote-tracking branch 'refs/remotes/origin/main'
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
import {Channel} from "./channel.js"
|
||||
import {Message} from "./message.js"
|
||||
|
||||
class Channels {
|
||||
constructor(client) {
|
||||
this.client = client;
|
||||
this.channel = undefined;
|
||||
}
|
||||
|
||||
async createChannel(members_id, reload) {
|
||||
@ -28,7 +28,10 @@ class Channels {
|
||||
if (exit_code == 200)
|
||||
messages = data.messages;
|
||||
|
||||
return new Channel(this.client, data.channel_id, members_id, messages, reload);
|
||||
console.log(response);
|
||||
console.log(data);
|
||||
this.channel = new Channel(this.client, data.channel_id, members_id, messages, reload);
|
||||
return this.channel;
|
||||
}
|
||||
|
||||
async deleteChannel(members_id) {
|
||||
|
Reference in New Issue
Block a user