Hooks🌈
Hooks🌈
DIAdiscord.js - Imagine an app
Created by Hooks🌈 on 7/28/2023 in #djs-questions
Optimization
Hello, I have a question can I optimize, reduce this line of code or not at all?
if(req[0].staff !== "player" && req[0].staff !== "owner" && req[0].staff !== "moderator") return message.reply({ content : `test`, ephemeral: true})
if(req[0].staff !== "player" && req[0].staff !== "owner" && req[0].staff !== "moderator") return message.reply({ content : `test`, ephemeral: true})
3 replies