in my /mute remove
command:
if(target.communicationDisabledUntilTimestamp > interaction.createdTimestamp) {
target.timeout(null)
} else if (target.roles.cache.has(muted_role)) {
target.roles.remove(muted_role)
} else return interaction.followUp({ content: `The member is not muted.` })
But if I run the command on the member that is timed out, it:
- Removes the timeout
- Replies
The member is not muted.
and returns the following code;
while it should just remove the timeout.
How do I fix that?