Comments (21)
yea, I can't say I disagree with how essentially unsecure all of that stuff was :D
from discord-global-mutual.
Hello,
Seems similar as #8.
Discord might have changed api, i'll try to check it out when I will have some free time.
Cheers!
from discord-global-mutual.
Also just a quick suggestion,
Maybe incorporating a logging of Discord ID & tag, not just name. So instead of it's current printout of (as an example), "DyteSprite" as the name, it would be "DyteSprite#9999, 987654321123456789". This would help a lot of keeping track of users if they changed their name.
Thanks!
from discord-global-mutual.
that is indeed a great suggestion
from discord-global-mutual.
Seems like discord blocked the ability to use method for fetching members of the guild for user token.
And currently, I don't see a way of how that can be fixed.
The error message that is returned:
{"message": "Missing Access", "code": 50001}
from discord-global-mutual.
Maybe it's possible to obtain via cache or something?
from discord-global-mutual.
I tried all the possible ways that I'm aware of. I couldn't find anything that would work.
Unfortunately, I think the project will remain in a "broken" state until someone hopefully will find a way to fix it.
from discord-global-mutual.
Took your scripts and used Discord.js instead. Works like a charm so far.
What's the format of your json exported files in /data ? @inlife
(I want to use the same one, and couldn't see it as the json files are blank with the current script.)
from discord-global-mutual.
oh, interesting
@prrjn could you show how did you do that?
I wanted to work on a new version until I got stuck on this issue
format for json files was simply following the api responses:
-
for each guild fetch users (they were stored as buch of json files in data/members folder):
-
and then they were glued together by user id's forming a json object, where keys are user ids, and one of the object's members was a new "shared_servers" field, containing an array of shared servers
from discord-global-mutual.
I'm currently re-working your export.js
script to fix the issue. compare.js
and print.js
should work afterwards.
Here's the Discord.js method I used to fetch members from different guilds
Here's the 'homemade' script I used :
const Discord = require('discord.js');
const client = new Discord.Client();
const fs = require("fs");
const gracefulFs = require('graceful-fs');
gracefulFs.gracefulify(fs);
client.exported_data = require ("./exported_data.json");
client.once('ready', async () => {
// Set the guild id
const guild = client.guilds.get('THE_GUILD_ID')
// Updating the members of the guild
await fetch(guild)
// Write in .json file every info for each member
var i = 0
guild.members.forEach( mem => {
client.exported_data[i] = {
["user"]: {
id: mem.user.id,
username: mem.user.username,
discriminator: mem.user.discriminator,
avatar: mem.user.avatar,
locale: mem.user.locale,
verified: mem.user.verified,
email: mem.user.email,
flags: mem.user.flags,
premium_type: mem.user.premium_type,
created_at: mem.user.createdAt
},
["nickname"]: mem.nickname,
["joined_at"]: mem.joinedAt,
["premium_since"]: mem.premium_since,
["roles"]: mem.roles
}
i++
})
fs.writeFile("./exported_data.json", JSON.stringify (client.exported_data, null, 4), err => {
if (err) throw err;
})
console.log('Done!')
});
async function fetch(oneGuild) {
await oneGuild.fetchMembers()
return console.log(oneGuild.members.size)
}
client.login("YOUR_DISCORD_TOKEN");
from discord-global-mutual.
hm, but how are you fetching the guilds current user belongs to?
the script you showed me works as an exporter for a single guild
or am i missing something?
from discord-global-mutual.
Yup, this was for testing!
I need to loop on all user's guilds, create all the jsons, like your script.
from discord-global-mutual.
if you find a way to do this, that would be amazing
so far its the only problem im blocked by
from discord-global-mutual.
So I'm not the only who is having the same problem.
from discord-global-mutual.
yea, unfortunately, seems like discord decided to block the ability to do this
at least as i understand the situation
from discord-global-mutual.
That would make sense considering how many problems they had with bots using user accounts to join the servers and spam DMs. They might have limited that functionality only to bot users that require owner invitation to join
from discord-global-mutual.
@prrjn any progress so far? :)
from discord-global-mutual.
Was hoping to use this to check on spies from other guilds in a guild of an MMO I'm playing.
Cause people are joining our discord to find us and harass us in game, but we don't know who they are. :(
from discord-global-mutual.
@ayyneya maybe you will benefit from server management bot like Tatsumaki, Mee6 or Miki
from discord-global-mutual.
Anyone have an updates on the status of this, or is it still completely broken?
from discord-global-mutual.
no updates, most likely it is, i doubt discord made any changes in that regards
from discord-global-mutual.
Related Issues (11)
- How can I solve this error HOT 1
- Export is stuck HOT 5
- Possible to check specific servers? HOT 4
- Help w/ Making this work HOT 5
- Plugin saving to output.txt issue
- map not working HOT 1
- requesting users for guild never stops HOT 2
- Error when running export.js
- How to install? HOT 5
- Not Working or Safe to Use - Email Verification Required HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from discord-global-mutual.