Skip to content

[Discord] Missing permission for managing webhook not handled correctly #5450

@MindStudioOfficial

Description

@MindStudioOfficial

Type of bug

Error in console

/ess dump all output

https://essentialsx.net/dump.html?id=1b52a14a85034aa0ad6156004028aa25

Error log (if applicable)

https://paste.gg/p/anonymous/4dd2c8e2c72444b3af27dc8af30fce1f

Bug description

I updated essentials and related plugins to 1.19.4 and found that the discord plugin wasn't working anymore

I've then set up a new paper 1.20.1 server with the latest stable versions of the essentials plugins and created a new discord bot, copied all the relevant guild and channel ids and configured it the way I want

the console just outputs

An error occurred while logging into Discord, which has caused the plugin to disable itself: 

Cannot invoke "net.essentialsx.dep.club.minnced.discord.webhook.WebhookClient.close()" because the return value of "java.util.Map.remove(Object)" is null

And in the primary discord channel it just prints the "🛑 server has shut down" message

I am using the itzg/minecraft-server docker image with paper

Steps to reproduce

  1. Setup a new 1.20.1 papermc server via the itzg/minecraft-server docker image
  2. Add the essentials plugins
  3. configure the essentials discord plugin
  4. start the server
  5. look at the logs

Expected behaviour

Expected the "☑ server has started" message in the primary discord channel, no error messages and the plugin to work

Actual behaviour

"🛑 server has shut down" message in the primary discord channel along with the provided error message in the server console.
plugin is disabled afterwards

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: problemProblems that are not strictly bugs.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions