Skip to content

Get Previous Message by ID #94

Open
@JakeStevenson

Description

@JakeStevenson

I have a bot that needs to be able to respond to a previous message when mentioned in a reply. For example:

Joe (message A): I need help with .
Moderator, replying to message A: @helpbot
HelpBot, replying to message A: @joe, You can find help for at .....

Right now, I'm using discordMessage and capturing history of messages by ID, so if the bot sees another message come into the flow that mentions it's name, it will find the original, get the original request, and respond to it. But this can be memory intensive.

Is there a better way to get older messages by id than keeping a bunch of them in memory?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions