Badger_Discord_API icon indicating copy to clipboard operation
Badger_Discord_API copied to clipboard

Add 2 new exports: get Guild by role ID and Role name from role ID

Open coleminer0112 opened this issue 1 year ago • 0 comments

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.

coleminer0112 avatar Oct 24 '23 03:10 coleminer0112