I was looking to make a call mod chat webhook, where someone would say “?callmod” or something of the like, and it would send their profile URL to a certain channel in a Discord server so a mod can join their server. I’m just trying to look for the Roblox equivalent of Discord.py’s message.content. I figured it has something to do with ContextActinService but I’m not sure.
I’ve tried the Dev Hub already but I can’t find what I’m looking for.
Hello i don’t think this will work I tried it before and I immediately stopped the service just for the fact that if you have more than 1 server running and the person reporting you doesn’t allow join requests it can cause all sorts of problems I would recommend that the script gives you the game and for the server code or something you can join the player without going to profile.
I’d recommend using plr.Chatted() event that’ll fire once a player has stated a message, then check if that message is !modcall by using string.lower(msg) and an if statement, which will lower each character from the message - so if they type in !mODcall, it’ll be valid. If the message is valid, you’d use HttpService to post a message to the webhook by using PostAsync. I’d recommend seeing tutorials on how to create an embed, as this will assist you whilst creating a webhook. If you want to see what you can use for webhooks, see Discord’s API. I’d recommend adding a cooldown so the player won’t spam the function, and be sure to not use Discord for logging, especially for a common event for high-traffic games.
Using “()” at the end of a statement indicates that it’s a method in common documentation. Just because in real use the syntax would be incorrect doesn’t mean it’s wrong in documentation.
For example, one method of a player class is CharacterAdded(), where we use the parenthesis to indicate that it’s a method and not an attribute such as Character.