Added DM support, DM Creation and DM Deletion

This commit is contained in:
hydrabolt
2016-05-03 17:50:33 +01:00
parent ab17375248
commit bc443df11d
5 changed files with 75 additions and 14 deletions

View File

@@ -1,5 +1,7 @@
'use strict';
const TextBasedChannel = require('./interface/TextBasedChannel');
class GuildMember {
constructor(guild, data) {
this.client = guild.client;
@@ -56,6 +58,12 @@ class GuildMember {
get id() {
return this.user.id;
}
deleteDM() {
return this.client.rest.methods.DeleteChannel(this);
}
}
TextBasedChannel.applyToClass(GuildMember);
module.exports = GuildMember;