JaredScar / Badger_Discord_API

A FiveM API Script [created by Badger]
MIT License
56 stars 48 forks source link

Correct Multiguild compatibility issue (untested) #45

Closed coleminer0112 closed 1 year ago

coleminer0112 commented 1 year ago

43 Prompted this change.

Refactor GetDiscordRoles to provide all user roles (from all guilds) by default. GetDiscordRoles with specified guild will still return only those roles. GetDiscordRoles with multiguild option disabled will return only primary guild roles

Due to current situation, I am unable to test this on a live environment. However, I thoroughly checked the code for errors. Feel free to test and let me know if this throws any errors.