Add moveMember function to member handler

Closes #164
This commit is contained in:
ayntee
2020-11-02 09:25:12 -08:00
parent f1cd616460
commit f32f1dec14

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 });
}