DiscordIntegration

DiscordIntegration

3M Downloads

I am unable to define roles in the config

utoc opened this issue · 2 comments

commented

Hello!

ChikachiDiscord mc1.10.2-1.3.0
Forge 2042
on MC 1.10.2

I picked up your mod today and I'm having trouble. I am not entirely sure that it is a mod issue; its possible that I've made an error somewhere. The bot is quite chipper in announcing its online, players joining etc but when I try to assign roles for commands, tps for example, the command does not respond. Things with no roles assigned seem to work fine.

Chat screenshot: http://i.imgur.com/gvBJxRM.png

Have I gone wrong? Where? Is this a bug?

My config is below:

{
    "discord": {
        "token": "ermagerd",
        "channel": "tertsaserkrert",
        "commands": {
            "online": {
                "enabled": true,
                "roles": [],
                "aliases": []
            },
            "tps": {
                "enabled": true,
                "roles": [
                    "admin"
                ],
                "aliases": []
            },
            "unstuck": {
                "enabled": true,
                "roles": [
                    "mod",
                    "admin"
                ],
                "aliases": []
            },
            "custom": []
        }
    },
    "messages": {
        "discord": {
            "chat": {
                "enabled": true,
                "message": "<__%USER%__> %MESSAGE%",
                "relaySayCommand": true
            },
            "death": {
                "enabled": true,
                "message": "__%USER%__ %MESSAGE%"
            },
            "achievement": {
                "enabled": true,
                "message": "Congrats to __%USER%__ for earning the achievement **[%ACHIEVEMENT%]** (%DESCRIPTION%)"
            },
            "join": {
                "enabled": true,
                "message": "__%USER%__ has joined the server!"
            },
            "leave": {
                "enabled": true,
                "message": "__%USER%__ left the server!"
            },
            "startup": {
                "enabled": true,
                "message": "**Server started**"
            },
            "shutdown": {
                "enabled": true,
                "message": "**Server shutdown**"
            },
            "crash": {
                "enabled": true,
                "message": "**Server crash detected**"
            }
        },
        "minecraft": {
            "chat": {
                "enabled": true,
                "message": "<%USER%> %MESSAGE%",
                "maxLength": -1,
                "usernameColor": "blue"
            }
        }
    },
    "experimental": {
        "fakePlayers": false
    }
}
commented

It seems like the role names on the Discord is starting with an @ sign - therefore it also needs to start with @ in the config.

commented

That was it. I shouldn't have assumed that omitting it would be correct. Thanks so much!