![how to connect discord to patreon how to connect discord to patreon](https://www.alphr.com/wp-content/uploads/2021/03/Screenshot_2021-03-30-01-43-58-127_com.android.chrome.jpg)
There is a chance it will crash though if they aren't on the server(the documentation doesn't say if it returns and error or undefined for some reason) so if it does crash you could instead do ('name','My Discord Server').members.find('id', ).roles. If the message is on the same server, otherwise you could do ('name','My Discord Server').member(thor).roles.find('name', 'Patreon Role') //this also returns undefined or a roleĬlearly that second option is long, but what is basically does is searches the servers the bot is in for a server called 'My Discord Server' then it finds the GuildMember form of the thor user resolvable, then it searches their roles for the role 'Patreon Role' What that does is it searches the users collection to see if the have "Patreon Role" ('name', 'Patreon Role') //this returns either undefined or a role 2021 The MiSTer FPGA Discord server has stared hosting the occasional stage event. Return (':x: This command is restricted to Patreon supporters.') Posted: (5 days ago) Discord connection with fiveM FiveM Client Support fivem, help, server streetcatyenApril 5, 2020, 9:27am 1 I need help connecting discord with FiveM, im not prompted with the option to connect discord with fiveM, the green authorize. Then, as an example, using this function in a command. Connecting Fivem To Discord Convert Best images From Images. If (!homeGuild) return console.error('Couldn\'t find the bots guild!') Ĭonst role = (role => role.name = 'Patreon') Its on the google drive for you all, I will have the link up in the discord The file is called RavenRapesCadeHQ.
![how to connect discord to patreon how to connect discord to patreon](https://miro.medium.com/max/1400/1*NtfLK2VdOVUd2lqUVLdtEQ.png)
Assuming 'client' is the instance of your Discord Client.Ĭonst homeGuild = ('idHere') Step 3: Choose a resulting action from the other app. Here's what this function would look like. Step 2: Pick one of the apps as a trigger, which will kick off your automation. You can define a function to help you out with this, export it and require it where you need it (or define it within relevant scope), and then call it to check if a user is one of your Patreon supporters. See GuildMember.roles and Collection.find(). Get the "home guild" with your users and corresponding Patreon role.Ĭheck whether or not the user has the Patreon role. Let's go over the tasks you need to accomplish this.