style: run format:apply

This commit is contained in:
2026-01-14 22:36:07 -03:00
parent c005bc0e54
commit 294e256feb
5 changed files with 54 additions and 45 deletions
+12 -9
View File
@@ -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) {