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 {
|
try {
|
||||||
const newChannel = await oldChannel.clone();
|
const newChannel = await oldChannel.clone();
|
||||||
await newChannel.setPosition(pos);
|
await newChannel.setPosition(pos);
|
||||||
const fetchedChannel = await interaction.client.channels.fetch(
|
const fetchedChannel = await interaction.client.channels.fetch(newChannel.id);
|
||||||
newChannel.id,
|
|
||||||
);
|
|
||||||
if (
|
if (
|
||||||
!notification && fetchedChannel &&
|
!notification && fetchedChannel &&
|
||||||
fetchedChannel.type === ChannelType.GuildText &&
|
fetchedChannel.type === ChannelType.GuildText &&
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue