-
What do you want to achieve? I want to make a game for myself that shows messages from a discord server
-
What is the issue? I don’t know how I would do this.
-
What solutions have you tried so far? Searching it up on the Dev Forum, I didn’t get good results.
I really wanna make a game for myself and I can confuse people in a discord server, but I don’t know how to show messages from a discord server.
1 Like
You would need to create a bot account that is present in the server, since discord forbids the usage of self bots.
You would have to send requests to discord to fetch the messages that is in a channel, which can be done by sending a GET request to this url, with an authorization header which is the bot token
https://discord.com/api/v8/channels/${channelId}/messages?limit=50
It will return a json array, that you can parse with HttpService:JSONDecode()
After that, it’s up to you on how you want to display the messages!