Badger_Discord_API
Badger_Discord_API copied to clipboard
Add 2 new exports: get Guild by role ID and Role name from role ID
We had a few use cases for these functions come up, so https://github.com/R3site created these, and I applied some modifications so they'd be suitable for general use.
Usage:
-
exports['Badger_Discord_API']:FindGuildForRole(roleId)
: returns guild ID of the guild which has the provided role (if one exists). -
exports['Badger_Discord_API']:RoleNameFromId(roleid,guild)
: returns the role name of given role ID. The guild argument is optional and if not included will use FindGuildForRole to seek that role name.