Skip to content

Commit

Permalink
lint is bad mkay how do i make this do it automatically mkay
Browse files Browse the repository at this point in the history
  • Loading branch information
theimperious1 committed Oct 3, 2024
1 parent 8b19fac commit 60e138e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/discord/commands/guild/d.say.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,21 @@ export const dSay: SlashCommand = {

// Ensure only moderators can use /say in announcements
if (
channel.type === ChannelType.GuildAnnouncement &&
!member.roles.cache.has(env.ROLE_MODERATOR)
channel.type === ChannelType.GuildAnnouncement
&& !member.roles.cache.has(env.ROLE_MODERATOR)
) {
await interaction.editReply({ content: 'Only moderators can use this command in announcement channels!' });
return false;
}

// Ensure that the channel used is a text channel
if (
channel.type !== ChannelType.GuildText &&
channel.type !== ChannelType.GuildVoice &&
channel.type !== ChannelType.PublicThread &&
channel.type !== ChannelType.PrivateThread &&
channel.type !== ChannelType.GuildAnnouncement &&
channel.type !== ChannelType.GuildForum
channel.type !== ChannelType.GuildText
&& channel.type !== ChannelType.GuildVoice
&& channel.type !== ChannelType.PublicThread
&& channel.type !== ChannelType.PrivateThread
&& channel.type !== ChannelType.GuildAnnouncement
&& channel.type !== ChannelType.GuildForum
) {
await interaction.editReply({ content: 'This command can only be used in a server!' });
return false;
Expand Down

0 comments on commit 60e138e

Please sign in to comment.