Skip to content

[DiscordRichPresence] Issue Resolved #2035

@TonoCatMeow

Description

@TonoCatMeow

Is there an existing issue for this?

Enter the name of the extension

Discord Rich Presence

Describe the bug of the extension

When using it, upon starting the project the game gives a javascript error.
the extension is on version 1.01
Here is the error:
A crash or error happened in the game.
If you're using JavaScript, verify your code. Otherwise, this might be an issue with GDevelop - consider reporting a bug. Full error is: Cannot find module 'discord-rich-presence' Require stack: - C:\Program Files\GDevelop\resources\app.asar\main.js -

Error: Cannot find module 'discord-rich-presence'
Require stack:

  • C:\Program Files\GDevelop\resources\app.asar\main.js
  • at Module._resolveFilename (node:internal/modules/cjs/loader:1232:15)
    at s._resolveFilename (node:electron/js2c/browser_init:2:123244)
    at Module._load (node:internal/modules/cjs/loader:1058:27)
    at c._load (node:electron/js2c/node_init:2:16955)
    at Module.require (node:internal/modules/cjs/loader:1318:19)
    at C:\Program Files\GDevelop\resources\app.asar\node_modules@electron\remote\dist\src\main\server.js:375:66
    at IpcMainImpl. (C:\Program Files\GDevelop\resources\app.asar\node_modules@electron\remote\dist\src\main\server.js:323:27)
    at IpcMainImpl.emit (node:events:518:28)
    at WebContents. (node:electron/js2c/browser_init:2:86924)
    at WebContents.emit (node:events:518:28)

Steps to reproduce

Add the extension to your project.
Add the code from the extension into the events sheet
Run the project
you get the error

GDevelop platform

Desktop

GDevelop version

5.6.257

Platform info

Details

OS (e.g. Windows, Linux, macOS, Android, iOS)

Windows

OS Version (e.g. Windows 10, macOS 10.15)

Windows 11

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    ⚠ Issue with an extensionAn issue with an extension that is already on the extension store

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions