AllowRoles()
Set Discord roles allowed to join. This function allows to optionally set a time at which users will be allowed to join.
This method is not idempotent, which means that if you call it multiple times, only the roles specified will be updated and roles set in previous calls that are not included in the call will stay unchanged.
The order in which this method is called influences the final configuration.
Parameters
roles
{ string }
A table of role IDs to be whitelisted
unix_epoch
number?
Seconds representing a point in time since January 1st 1970 00:00 UTC
Last updated