Skip to content

logan-mcgee/discordroles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discordroles

another attempt at simple discord role authentication.

The standard rule for each export is as follows:

  • guild is an optional value that will take a custom guild ( a guild different to the one defined in your config.json )
  • role can be an array/table or a string. if array, it simply checks to see if any of the items match any roles in the users roles.

The current exports available are:

  • isRolePresent(user, role, guild, callback) / isRolePresent(user, role, callback)
  • getUserRoles(user, guild, callback) / getUserRoles(user, callback)
  • getUserData(user, guild, callback) / getUserData(user, callback)

About

another attempt at simple discord role authentication.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published