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

i am trying to upg in v14.8.0 #65

Open
SuhaibChoudhary opened this issue Mar 26, 2023 · 1 comment
Open

i am trying to upg in v14.8.0 #65

SuhaibChoudhary opened this issue Mar 26, 2023 · 1 comment
Assignees
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@SuhaibChoudhary
Copy link

SuhaibChoudhary commented Mar 26, 2023

<% user.guilds.forEach(guild => { const permissions = new perms(guild.permissions); if(!permissions.has(Perms.ManageGuild)) return; %>

in dashboard.js my code
app.get("/dashboard", checkAuth, (req, res) => { renderTemplate(res, req, "dashboard.ejs", { perms: PermissionsBitField }); })
`;

error i see
`RangeError [BitFieldInvalid]: /home/runner/simple-discordjs-dashboard/dashboard/templates/dashboard.ejs:4
2|
3|

4| <% user.guilds.forEach(guild => {
5| const permissions = new perms(guild.permissions);
6| if(!permissions.has(Perms.ManageGuild)) return;
7| %>

Invalid bitfield flag or number: 37080128.`

@Myst82015
Copy link
Collaborator

It doesn't work in v14. Either you use an old version or you'll look up the old changelogs of discord.js and see what changed.

@Myst82015 Myst82015 self-assigned this Mar 27, 2023
@Myst82015 Myst82015 added bug Something isn't working wontfix This will not be worked on labels Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants