refactor(commands/modertation): nuke's fetch in a single line
This commit is contained in:
parent
e5dda46040
commit
5b6f5b2ea9
1 changed files with 1 additions and 3 deletions
|
|
@ -54,9 +54,7 @@ export default {
|
|||
try {
|
||||
const newChannel = await oldChannel.clone();
|
||||
await newChannel.setPosition(pos);
|
||||
const fetchedChannel = await interaction.client.channels.fetch(
|
||||
newChannel.id,
|
||||
);
|
||||
const fetchedChannel = await interaction.client.channels.fetch(newChannel.id);
|
||||
if (
|
||||
!notification && fetchedChannel &&
|
||||
fetchedChannel.type === ChannelType.GuildText &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue