Added guild.createChannel(name, type)

This commit is contained in:
hydrabolt
2016-04-26 17:44:42 +01:00
parent e9d7dfaee3
commit 2d3116d505
6 changed files with 52 additions and 5 deletions

View File

@@ -0,0 +1,23 @@
'use strict';
const Action = require('./Action');
const Constants = require('../../util/Constants');
const Message = require('../../structures/Message');
class ChannelCreateAction extends Action {
constructor(client) {
super(client);
}
handle(data) {
let client = this.client;
let channel = client.store.NewChannel(data);
return {
channel,
};
}
};
module.exports = ChannelCreateAction;