diff --git a/src/handlers/member.ts b/src/handlers/member.ts index 8b0faf83e..803a83cec 100644 --- a/src/handlers/member.ts +++ b/src/handlers/member.ts @@ -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 }); +}