Added rudimentary voice joining

This commit is contained in:
hydrabolt
2015-11-06 21:26:36 +00:00
parent bd0228bc71
commit cb5452f072
4 changed files with 131 additions and 2 deletions

View File

@@ -116,6 +116,14 @@ var Resolver = (function () {
return found;
};
Resolver.prototype.resolveVoiceChannel = function resolveVoiceChannel(resource) {
// resolveChannel will also work but this is more apt
if (resource instanceof VoiceChannel) {
return resource;
}
return null;
};
Resolver.prototype.resolveChannel = function resolveChannel(resource) {
/*
accepts a Message, Channel, Server, String ID, User