$userReacted
Checks if a user has reacted to a message with the given emoji. Returns true
or false
.
Usage
$userReacted[channelID;messageID;userID;reaction]
- channelID - (Optional) default value:
$channelID
. The ID of a channel you want to check reaction in. - messageID - (Optional) default value:
$messageID
. The ID of a message you want to check reaction on. - userID - (Optional) default value:
$authorID
. The ID of a user you want to check from if they reacted. - reaction - The emoji you want to check if user reacted with. For custom emojis, you can use their ID, which can be found when you send it into any channel with a backslash before it.
Example
Using $userReacted
How to use $userReacted
Cache
This function works on the bot's cache to find members. If the user is not cached, the function will not find them. User will be cached after they trigger any command from this bot, but eventually they will get deleted.
To have all members cached, you will need Tier 5 Bot.