B4J Question Discord Data extraction, including all text of channels... possible?

Magma

Expert
Licensed User
Longtime User
Hi there...

Well discord is a super app for communication and is free...

I saw @DonManfred lib https://www.b4x.com/android/forum/threads/jda-java-discord-api-create-a-bot-for-discord.119003/

But I have a more generic question that may is a feature of discord too...

Is the Discord Data extraction is possible, including all text of channels... is it possible?


Well have 2, 3 servers with a lot of work with many members and I think that maybe discord had a feature for saving locally a json or xml..
 

DonManfred

Expert
Licensed User
Longtime User
Well have 2, 3 servers with a lot of work with many members and I think that maybe discord had a feature for saving locally a json or xml..
not within Discord.

The DiscordApi is very powerful and there are implementations in any kind of languages.
.net, JavaScript, Java. My wrap is a wrap for the java implementation of JDA (JavaDiscordApi). I use the wrap in all my DiscordBots. All of them are written in B4J.

Regarding saving data again:

But if you have a Bot with the right permissions and have the Exclusive intents active then you can get every message posted.
With use of the Api you also can get older messages from a channel.

You need to implemented all this in a DiscordBot though.
Or have a look at the HTTP RestApi Discordprovides. You probably can get a messagehistory here too. I´m not sure about though as i only use JDA
 
Last edited:
Upvote 0

Magma

Expert
Licensed User
Longtime User
not within Discord.

The DiscordApi is very powerful and there are implementations in any kind of languages.
.net, JavaScript, Java. My wrap is a wrap for the java implementation of JDA (JavaDiscordApi). I use the wrap in all my DiscordBots. All of them are written in B4J.

Regarding saving data again:

But if you have a Bot with the right permissions and have the Exclusive intents active then you can get every message posted.
With use of the Api you also can get older messages from a channel.

You need to implemented all this in a DiscordBot though.
Or have a look at the HTTP RestApi Discordprovides. You probably can get a messagehistory here too. I´m not sure about though as i only use JDA
Is there an example creating a discordbot and use of api saving All old messages of all channels ?
..otcourse I am the creator admin of server
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
and use of api saving All old messages of all channels ?
i can only tell you what needs to be done.
I can only provide development-source snippets of doing that. And only for JDA.
Away from that you first should start building a bot and see by yourself what you can get.

Writing such methods requires some knowledge of how discord and the api used within JDA works.

I can not help at all with the direct use of the Discord Api. I just know there is one.
 
Last edited:
Upvote 0
Top