Skip to content
This repository was archived by the owner on Dec 1, 2021. It is now read-only.
This repository was archived by the owner on Dec 1, 2021. It is now read-only.

Crash on message send #41

@zeroxs

Description

@zeroxs

if ((_guild == nullptr) && (_guild_id > 0))
_guild = _core->find_guild(_guild_id);
if ((_channel == nullptr) && (_channel_id > 0))
_channel = _core->find_channel(_channel_id);
if (!_channel)
//throw because channel should always exist or else we have no understanding of the channel
//TODO: create a dummy channel in this instance then request full info after?
//bot would have already performed action on it by then. perhaps timed block here until channel info
//is requested and populated and throw if it can't be requested?
throw aegis::exception(error::channel_not_found);

crash when sending a message too early. throw performed due to missing guild/channel cache is not possible to be caught due to futures

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions