mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-23 21:52:45 -05:00
idk
This commit is contained in:
1 parent
93ab04691c
commit
5359498d12
8 files changed
+19
-15
No files matched your search
@@ -788,6 +788,7 @@ export class PlayerManager {
|
||||
const channel = this.commands.client?.channels?.get(cid);
|
||||
|
||||
if (!channel) {
|
||||
cb(null);
|
||||
return message.reply(mkEmbed(
|
||||
this._t(message, "responses.join.channelNotFound", { channel: cid })
|
||||
));
|
||||
@@ -796,10 +797,12 @@ export class PlayerManager {
|
||||
const isVoice = channel.type === 2;
|
||||
|
||||
if (!isVoice) {
|
||||
cb(null);
|
||||
return message.reply(mkEmbed(this._t(message, "responses._common.voiceChannelRequired")));
|
||||
}
|
||||
|
||||
if (!botHasVoicePermissions(this.commands?.client, cid)) {
|
||||
cb(null);
|
||||
return message.reply(mkEmbed(
|
||||
this._t(message, "responses.join.joinFailedPerms", { channel: `<#${cleanId(cid)}>` })
|
||||
));
|
||||
@@ -814,6 +817,7 @@ export class PlayerManager {
|
||||
return message.reply(mkEmbed(this._t(message, "responses.join.alreadyJoined", { channel: cid })));
|
||||
}
|
||||
if (this._pendingJoins.has(cleanChannelId)) {
|
||||
cb(null);
|
||||
return message.reply(mkEmbed(this._t(message, "responses.join.joining")));
|
||||
}
|
||||
this._pendingJoins.add(cleanChannelId);
|
||||
|
||||
Reference in new issue
Block a user