This commit is contained in:
ayntee
2020-11-04 07:17:01 -08:00
6 changed files with 33 additions and 47 deletions
+14
View File
@@ -183,3 +183,17 @@ export function editMember(
options,
);
}
/**
* Move a member from a voice channel to another.
* @param guildID the id of the guild which the channel exists in
* @param memberID the id of the member to move.
* @param channelID id of channel to move user to (if they are connected to voice)
*/
export function moveMember(
guildID: string,
memberID: string,
channelID: string,
) {
return editMember(guildID, memberID, { channel_id: channelID });
}