style: run format:apply
This commit is contained in:
@@ -42,15 +42,18 @@ const cmd: Command = {
|
||||
}
|
||||
|
||||
const voiceChannel = member.voice.channel;
|
||||
if (voiceChannel.userLimit != 0 && voiceChannel.members.size >= voiceChannel.userLimit) {
|
||||
if (
|
||||
voiceChannel.userLimit != 0 &&
|
||||
voiceChannel.members.size >= voiceChannel.userLimit
|
||||
) {
|
||||
interaction.reply('Channel is full');
|
||||
return;
|
||||
}
|
||||
|
||||
const perms = voiceChannel.permissionsFor(me)
|
||||
const perms = voiceChannel.permissionsFor(me);
|
||||
|
||||
if (!perms.has(PermissionsBitField.Flags.ViewChannel)) {
|
||||
interaction.reply("I don't have permissions to see that channel")
|
||||
interaction.reply("I don't have permissions to see that channel");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -60,16 +63,16 @@ const cmd: Command = {
|
||||
}
|
||||
|
||||
if (!perms.has(PermissionsBitField.Flags.Speak)) {
|
||||
interaction.reply("I don't have permissions to speak on that channel")
|
||||
interaction.reply("I don't have permissions to speak on that channel");
|
||||
return;
|
||||
}
|
||||
|
||||
const voiceOptions: JoinVoiceChannelOptions & CreateVoiceConnectionOptions =
|
||||
{
|
||||
channelId: member.voice.channelId,
|
||||
guildId: interaction.guild.id,
|
||||
adapterCreator: interaction.guild.voiceAdapterCreator
|
||||
};
|
||||
{
|
||||
channelId: member.voice.channelId,
|
||||
guildId: interaction.guild.id,
|
||||
adapterCreator: interaction.guild.voiceAdapterCreator
|
||||
};
|
||||
|
||||
const connection = await joinVoiceChannel(voiceOptions);
|
||||
if (!connection) {
|
||||
|
||||
Reference in New Issue
Block a user