Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LarmuseauNiels committed Apr 24, 2023
1 parent d0a385c commit 42255f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion interactions/commands/embedBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ module.exports = {
option
.setName("channel")
.setDescription("Channel to send the embed message to.")
.setRequired(false)
.setRequired(true)
)
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator),
isGuild: true,
async execute(interaction) {
const channel = interaction.guild.channels.cache.get(
interaction.options.get("channel")?.value || interaction.channel.id
Expand Down

0 comments on commit 42255f5

Please sign in to comment.