Code Monkey home page Code Monkey logo

amethystjs's Introduction

French and english developper, works on

  • javascript
  • node.js (specially in discord.js)
  • html & css
  • python
  • C# / C++
  • typescript
  • Learning Rust

In my life I like chess, listen to music and sleep

Contact

If you want to contact me, go on this discord server.

Draver

I'm working on Draver, a french multi-purpose bot

Don't hesitate to contact me for dev help or project ๐Ÿ˜‰

Projects

I made Amethyst JS, a framework for javascript Discord Bots, and Lofi Girl, an open source lofi music discord bot, and currently working on a RPG Discord bot (Minish Cap RP bot)

amethystjs's People

Contributors

greensky-gs avatar renovate[bot] avatar yeikzy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

protoniuman

amethystjs's Issues

Button denied code

Wrong code in button denietion (permissions) :

if (interaction.guild && handler.options?.clientPermissions?.length > 0) {
            const missing = [];
            for (const perm of handler.options.clientPermissions) {
                if (!interaction.guild.members.me.permissions.has(perm))
                    missing.push(perm);
            }
            if (missing.length > 0) {
                return interaction.client.emit('buttonDenied', {
                    button: interaction,
                    message: 'Client is missing permissions',
                    metadata: {
                        permissions: {
                            got: interaction.guild.members.me.permissions.toArray().filter((x) => !missing.includes(x)),
                            need: handler.options.clientPermissions,
                            missing
                        },
                        code: ButtonHandler_1.ButtonDeniedCode.ClientMissingPerms
                    },
                    user: interaction.user
                });
            }
        }
        if (interaction.guild && handler.options?.permissions?.length > 0) {
            const missing = [];
            const perms = interaction.member.permissions;
            for (const perm of handler.options.permissions) {
                if (!perms.has(perm))
                    missing.push(perm);
            }
            if (missing.length > 0) {
                return interaction.client.emit('buttonDenied', {
                    button: interaction,
                    message: 'Client is missing permissions',
                    metadata: {
                        permissions: {
                            got: perms.toArray().filter((x) => !missing.includes(x)),
                            need: handler.options.clientPermissions,
                            missing
                        },
                        code: ButtonHandler_1.ButtonDeniedCode.ClientMissingPerms // Here, we expect MissingPerms and not ClientMissingPerms
                    },
                    user: interaction.user
                });
            }
        }

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/release-package.yml
  • actions/checkout v4
  • actions/setup-node v4
  • actions/checkout v4
  • actions/setup-node v4
npm
package.json
  • discord.js ^14.13.0
  • dsc-pagination ^1.0.21
  • discord-api-types ^0.37.60
  • eslint ^8.27.0
  • eslint-plugin-prettier ^5.0.0
  • prettier ^3.0.0
  • tsc ^2.0.4
  • tslib ^2.6.2
  • typescript ^5.2.2

  • Check this box to trigger a request for Renovate to run again on this repository

Ideas

Ideas for the Package

  • Fix waitForMessage()

You can put your ideas here

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.