nicholastay / passport-discord

Passport strategy for authentication with Discord (discordapp.com)
ISC License
172 stars 55 forks source link

error Invalid bitfield flag or number: 104189504. #43

Closed Scarner56 closed 3 years ago

Scarner56 commented 3 years ago

hello

the error i get: Invalid bitfield flag or number: 104189504.

code:

   <% user.guilds.forEach(guild => {
    const permsOnGuild = new perms(guild.permissions);
    if(!permsOnGuild.has("104320609")) return;
  %>
   <% if (bot.guilds.cache.get(guild.id)) { %>
    <% var a = "Sunucuyu Yönet" %>

    <% } else { %>
        <% var a = "Sunucuya Ekle" %>

    <% } %>
        <% if (bot.guilds.cache.get(guild.id)) { %>
    <% var link = `/yonet?server=${guild.id}` %>
    <% } else { %>    
    <% var link = `https://discord.com/oauth2/authorize?scope=bot&response_type=code&redirect_uri=${bot.ayarlar.callbackURL}&permissions=8&client_id=${bot.user.id}&guild_id=${guild.id}` %>
    <% } %>

help me asap