+
Skip to content

Allow IgnoreCheckPredicate to return a promise #155

@dj346

Description

@dj346

It would be nice if IgnoreCheckPredicate in ignorePermissions in CommandHandler allowed for promises

Just thought it would be nice; I was able to integrate my database nicely for the prefix doing

prefix: async (msg: Message) => {

            var serverData = await client.db.getRepository(ServerSettings).findOne({
                guild: msg.guild.id
            });

            return serverData.prefix != null ? serverData.prefix : prefix
        }

But wasn't able to do the same for ignore permissions because it doesn't allow for promises.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载