#failed

1 messages · Page 1 of 1 (latest)

cinder magnet
cinder magnet
#

it comes up with else which is denied i put

wind surge
cinder magnet
wind surge
#

ahh I see it

#

one sec

cinder magnet
#

ok

wind surge
#
const a = new Set();
a.add('1')
console.log(a.has('3' || '1'))
#

this logs false

cinder magnet
#

how do i make it to where certain roles can use the command?

wind surge
#
const allowedRoles = ['934717670232850472', /** etc */...];
const hasRole = allowedRoles.some((id) => msg.member.roles.cache.has(id));
if (hasRole) {
  await msg.channel.delete()
}
cinder magnet
#

ty