Zemanzo / web-marbles

Aims to recreate Marble Racing from the ground up, as a fully web based game
https://playmarbl.es/
GNU General Public License v3.0
23 stars 12 forks source link

Permissions are not retrieved correctly #299

Closed Zemanzo closed 3 years ago

Zemanzo commented 3 years ago

Expected behavior When using the !lotsofbots command, bot marbles should be added to the game.

Actual behavior When using the !lotsofbots command, no bot marbles are added. This is because in src\server\chat\permissions.js, the _getDiscordMemberById() function returns undefined.

Reproduction steps

  1. Open the client
  2. Make sure you have permission to use !lotsofbots (have the role for DEVELOPER_COMMANDS)
  3. Type !lotsofbots
  4. It no workey

Platform OS: Windows 10 Browser version: Firefox Developer Edition (93.0b5 (64-bit)) Build version: 1.3.1 (latest /dev branch)