mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 01:53:51 +02:00
Join/Leave should be guildOnly
This commit is contained in:
@@ -8,6 +8,7 @@ module.exports = class JoinCommand extends Command {
|
|||||||
group: 'voice',
|
group: 'voice',
|
||||||
memberName: 'join',
|
memberName: 'join',
|
||||||
description: 'Joins your voice channel.',
|
description: 'Joins your voice channel.',
|
||||||
|
guildOnly: true,
|
||||||
guarded: true,
|
guarded: true,
|
||||||
userPermissions: ['CONNECT']
|
userPermissions: ['CONNECT']
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ module.exports = class LeaveCommand extends Command {
|
|||||||
group: 'voice',
|
group: 'voice',
|
||||||
memberName: 'leave',
|
memberName: 'leave',
|
||||||
description: 'Leaves the current voice channel.',
|
description: 'Leaves the current voice channel.',
|
||||||
|
guildOnly: true,
|
||||||
guarded: true,
|
guarded: true,
|
||||||
userPermissions: ['MOVE_MEMBERS']
|
userPermissions: ['MOVE_MEMBERS']
|
||||||
});
|
});
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "114.5.0",
|
"version": "114.5.1",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user