Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

discord js remove reaction from user

const userReactions = message.reactions.cache.filter(reaction => reaction.users.cache.has(userId));

try {
	for (const reaction of userReactions.values()) {
		await reaction.users.remove(userId);
	}
} catch (error) {
	console.error('Failed to remove reactions.');
}
Source by discordjs.guide #
 
PREVIOUS NEXT
Tagged: #discord #js #remove #reaction #user
ADD COMMENT
Topic
Name
9+5 =