3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-21 16:55:03 +00:00

Add command to kick from VC (#124)

This commit is contained in:
Nils 2021-01-28 00:28:26 +01:00 committed by GitHub
parent 8c3d39c2b8
commit 5b7085b0f5
6 changed files with 66 additions and 3 deletions

View file

@ -26,8 +26,6 @@ export const VcmoveCmd = utilityCmd({
async run({ message: msg, args, pluginData }) {
let channel: VoiceChannel;
const foo = args.member;
if (isSnowflake(args.channel)) {
// Snowflake -> resolve channel directly
const potentialChannel = pluginData.guild.channels.get(args.channel);
@ -78,7 +76,7 @@ export const VcmoveCmd = utilityCmd({
channelID: channel.id,
});
} catch (e) {
msg.channel.createMessage(errorMessage("Failed to move member"));
sendErrorMessage(pluginData, msg.channel, "Failed to move member");
return;
}