Skip to content

Commit

Permalink
Merge pull request #11 from pixelate-it/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
mirdukkkkk authored Dec 1, 2023
2 parents 0d66f7a + 7770f51 commit 75a9005
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/ClearCommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ class ClearCommand extends PixelCommand {
token: message.client.config.insideToken,
color
})
}).then(async(res) => await res.json());
}).then(async res => await res.json());

if(data?.error ?? !data) return msg.edit({ content: 'API PixelBattle недоступно в данный момент, регенерация холста не возможна' })
if(data?.error ?? !data) return msg.edit({ content: 'API PixelBattle недоступно в данный момент, регенерация холста не возможна' });

return msg.edit({ content: `Холст ${data.canvas.width}x${data.canvas.height} был успешно очищен! Как его цвет был установлен - \`${color}\`` });
}
Expand Down

0 comments on commit 75a9005

Please sign in to comment.