mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
Add command to kick from VC (#124)
This commit is contained in:
parent
c1fc9744e3
commit
1c24910a20
6 changed files with 66 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue