GithubHelp home page GithubHelp logo

sefinek24 / is-discord-invite Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 3.0 398 KB

Verifies the presence of a Discord server invitation within a given string or message, offering robust validation and control mechanisms to ensure the authenticity and validity of the invitation link.

Home Page: https://npmjs.com/package/is-discord-invite

License: MIT License

JavaScript 100.00%
check discord discord-bot guild invitation invitations invite is is-discord-invite javascript nodejs server

is-discord-invite's Introduction

is-discord-invite's People

Contributors

nyakase avatar plarywastaken avatar sefinek24 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

is-discord-invite's Issues

Online verification does not support {GuildName}-{GuildId} style invites

Invites such as https://discord.com/invite/otakus-br-828415559183630357 are considered invalid when using online verification but are valid. Curl command used to test: curl https://discord.com/api/invites/otakus-br-828415559183630357, returns:

{"type":0,"code":"otakus-br-828415559183630357","expires_at":null,"flags":2,"guild":{"id":"828415559183630357","name":"Otakus BR","splash":"c0dcaf3851bd800e708c5028f7c320a7","banner":"8fbf5b1850ae89ede905cdb6a64e145e","description":"Seja bem-vindo","icon":"5aec47171ff29ac8f59ce7a66daf4c9f","features":["INVITE_SPLASH","DISCOVERABLE","COMMUNITY","SOUNDBOARD","THREE_DAY_THREAD_ARCHIVE","ENABLED_DISCOVERABLE_BEFORE","PREVIEW_ENABLED","TEXT_IN_VOICE_ENABLED","AUTO_MODERATION","NEWS","ANIMATED_ICON","CHANNEL_ICON_EMOJIS_GENERATED","MEMBER_VERIFICATION_GATE_ENABLED","GUILD_WEB_PAGE_VANITY_URL"],"verification_level":1,"vanity_url_code":"otakus-br-828415559183630357","nsfw_level":0,"nsfw":false,"premium_subscription_count":2},"guild_id":"828415559183630357","channel":{"id":"833860205460324433","type":0,"name":"\u0b68\u0b67\ud83d\udccb\u1dd4\u1dd4\u1dd4\u30fbregras\u02da\u208a"}}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.