Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] RoleMembers not showing in context menu #787

Closed
idk2124234 opened this issue Sep 30, 2024 · 9 comments
Closed

[Bug] RoleMembers not showing in context menu #787

idk2124234 opened this issue Sep 30, 2024 · 9 comments
Labels

Comments

@idk2124234
Copy link

Which plugin/theme is this about?
RoleMembers

Describe the Bug
Plugin not showing in context menu

To Reproduce
Literally just enable the plugin

Expected Behavior
Role Members should show in context menu
{9535BD8D-E85D-4B9B-B2BC-95F0BFB55DC4}

@idk2124234 idk2124234 added the bug label Sep 30, 2024
@idk2124234
Copy link
Author

@zerebos pls fix

@fuzeduze
Copy link

fuzeduze commented Oct 1, 2024

I have the same issue, and the mention option have the same problem! Thank you in advance!
image

@iDeparture
Copy link

iDeparture commented Oct 1, 2024

Which plugin/theme is this about? RoleMembers

Describe the Bug Plugin not showing in context menu

To Reproduce Literally just enable the plugin

Expected Behavior Role Members should show in context menu {9535BD8D-E85D-4B9B-B2BC-95F0BFB55DC4}

its working for me scratch that, is PermissionsViewer and Channel Permissions not working for anyone?

image

image

@idk2124234
Copy link
Author

Which plugin/theme is this about? RoleMembers
Describe the Bug Plugin not showing in context menu
To Reproduce Literally just enable the plugin
Expected Behavior Role Members should show in context menu {9535BD8D-E85D-4B9B-B2BC-95F0BFB55DC4}

its working for me scratch that, is PermissionsViewer and Channel Permissions not working for anyone?

image

image

thats not the same thing that roles is working but when clicking on a server ur supposed to see all roles and click on a role to see who has that role

@Teteros
Copy link

Teteros commented Oct 21, 2024

PR #792 addresses this but if you don't wanna rebuild the plugin you can do this

Go to Plugins -> RoleMembers and Edit code ⚙️
and edit and save the GuildStore line to fix it:

--- a/src/plugins/RoleMembers/index.js
+++ b/src/plugins/RoleMembers/index.js
@@ -10,7 +10,7 @@ module.exports = (Plugin, Api) => {
     const filter = (obj, predicate) => from(Object.entries(obj).filter((o) => {return predicate(o[1]);}));
 
     const SelectedGuildStore = DiscordModules.SelectedGuildStore;
-    const GuildStore = DiscordModules.GuildStore;
+    const GuildStore = Webpack.getStore("GuildStore");
     const GuildMemberStore = DiscordModules.GuildMemberStore;
     const UserStore = DiscordModules.UserStore;
     const ImageResolver = DiscordModules.ImageResolver;

@idk2124234
Copy link
Author

PR #792 addresses this but if you don't wanna rebuild the plugin you can do this

Go to Plugins -> RoleMembers and Edit code ⚙️ and edit and save the GuildStore line to fix it:

--- a/src/plugins/RoleMembers/index.js
+++ b/src/plugins/RoleMembers/index.js
@@ -10,7 +10,7 @@ module.exports = (Plugin, Api) => {
     const filter = (obj, predicate) => from(Object.entries(obj).filter((o) => {return predicate(o[1]);}));
 
     const SelectedGuildStore = DiscordModules.SelectedGuildStore;
-    const GuildStore = DiscordModules.GuildStore;
+    const GuildStore = Webpack.getStore("GuildStore");
     const GuildMemberStore = DiscordModules.GuildMemberStore;
     const UserStore = DiscordModules.UserStore;
     const ImageResolver = DiscordModules.ImageResolver;

Thx. It Worked

@Danny-Boii
Copy link

PR #792 addresses this but if you don't wanna rebuild the plugin you can do this

Go to Plugins -> RoleMembers and Edit code ⚙️ and edit and save the GuildStore line to fix it:

--- a/src/plugins/RoleMembers/index.js
+++ b/src/plugins/RoleMembers/index.js
@@ -10,7 +10,7 @@ module.exports = (Plugin, Api) => {
     const filter = (obj, predicate) => from(Object.entries(obj).filter((o) => {return predicate(o[1]);}));
 
     const SelectedGuildStore = DiscordModules.SelectedGuildStore;
-    const GuildStore = DiscordModules.GuildStore;
+    const GuildStore = Webpack.getStore("GuildStore");
     const GuildMemberStore = DiscordModules.GuildMemberStore;
     const UserStore = DiscordModules.UserStore;
     const ImageResolver = DiscordModules.ImageResolver;

thanks as well. Do you know approximately how large the server has to be before the script stops working? Some bigger servers get 0 returns in the member list while smaller ones work as intended. Thanks again

@DaddyBoard
Copy link

PR #792 addresses this but if you don't wanna rebuild the plugin you can do this
Go to Plugins -> RoleMembers and Edit code ⚙️ and edit and save the GuildStore line to fix it:

--- a/src/plugins/RoleMembers/index.js
+++ b/src/plugins/RoleMembers/index.js
@@ -10,7 +10,7 @@ module.exports = (Plugin, Api) => {
     const filter = (obj, predicate) => from(Object.entries(obj).filter((o) => {return predicate(o[1]);}));
 
     const SelectedGuildStore = DiscordModules.SelectedGuildStore;
-    const GuildStore = DiscordModules.GuildStore;
+    const GuildStore = Webpack.getStore("GuildStore");
     const GuildMemberStore = DiscordModules.GuildMemberStore;
     const UserStore = DiscordModules.UserStore;
     const ImageResolver = DiscordModules.ImageResolver;

thanks as well. Do you know approximately how large the server has to be before the script stops working? Some bigger servers get 0 returns in the member list while smaller ones work as intended. Thanks again

Could you share a Console log if there's any errors when it fails to pull users in larger servers?

I pushed the fix via a PR for this and wouldn't mind fixing this issue if you can provide more information

@Danny-Boii
Copy link

Unfortunately, I don't really get any errors in console, just a really botched pull. A server with thousands of members only conjures up 19 people in a selected role (obviously a disparity). Meanwhile, my small circle servers get accurate returns
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants