Closed ocvcoin closed 1 year ago
please don't use the Bug
label, it is meant for bugs in DiscordPHP not in your code.
also, bot is bool, so either true
or false
and also you need to remove the spaces
bot
is always true
when resolved target is a bot, otherwise it's sometimes null
or false
, depends on the users cache. You should refrain from using the @
silent error so var_dump()
doesn't confuse error with null values.
Thank you. It's clarified.
Hi I have a problem. For some reason I can't understand, var_dump rarely shows true for the same user & same command. Why could this happen?
PHP 7.4.3 discord-php v7.3.3