mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
Merge pull request #168 from hydrabolt/issue/144
Allow moving users to voice channels
This commit is contained in:
@@ -292,6 +292,12 @@ export default class Client extends EventEmitter {
|
||||
.then(dataCallback(callback), errorCallback(callback));
|
||||
}
|
||||
|
||||
// def moveMember
|
||||
moveMember(user, channel, callback = (/*err, {}*/) => { }) {
|
||||
return this.internal.moveMember(user, channel)
|
||||
.then(dataCallback(callback), errorCallback(callback));
|
||||
}
|
||||
|
||||
// def createRole
|
||||
createRole(server, data = null, callback = (/*err, role*/) => { }) {
|
||||
if (typeof data === "function") {
|
||||
|
||||
Reference in New Issue
Block a user