Skip to content

Commit

Permalink
Merge pull request #32 from Project-Coda/dev
Browse files Browse the repository at this point in the history
Fix VC move bug
  • Loading branch information
ikifar2012 authored Jul 30, 2022
2 parents 0ab08f2 + 346654f commit 08584a9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion commands/vc.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ module.exports = {
var usersource = interaction.options.get('source').value;
var sourceid = usersource.replace(/[^0-9.]+/g, '');
var sourcevc = await global.client.channels.cache.get(sourceid);
if (sourcevc && sourcevc.type === 'GUILD_VOICE' && destinationvc && destinationvc.type === 'GUILD_VOICE') {
if (sourcevc && sourcevc.type === 2 && destinationvc && destinationvc.type === 2) {
await sourcevc.members.forEach(member => {
member.voice.setChannel(destination);
people.push(member);
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "coda-utilities",
"version": "2.1.0",
"version": "2.0.3",
"description": "A general utilities bot for Coda",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 08584a9

Please sign in to comment.