Raised This Month: $51 Target: $400
 12% 

[ANY] Discord API (Send/Retrieve messages, list Guilds/Channels) UPDATE: 10/1/17


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Facksy
Senior Member
Join Date: Apr 2017
Location: +2+2
Old 11-09-2018 , 13:42   Re: [ANY] Discord API (Send/Retrieve messages, list Guilds/Channels) UPDATE: 10/1/17
Reply With Quote #19

Hey guys, im trying to make a script which allow people with certain roles to relay message to the server.
For example, if a guy have the role "Root", it will send the message to the server but if he dont have it, it wont send. The problem is that I don't know how to check if some user has this role, I dont know how to get role of the message author, I tried to use message.GetAuthor().GetRoles() but it didnt work
__________________
My Steam I take private requests if related with TF2
My Plugins
Facksy is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode