1 User.hasDiscordRole Method
asdia edited this page 2021-01-06 22:56:02 +08:00

Class: User

Determines if a user has a Discord role in the SpookVooper Discord server.

Parameters

Name Type Default Value Comment
Role string The role's name

Returns

Boolean
A boolean determining whether the user has the role.

Example

const user = new User('u-02c977bb-0a6c-4eb2-bfca-5e9101025aaf')
console.log(user.hasDiscordRole('Supporter')) // true