MCPcopy Create free account
hub / github.com/brainboxdotcc/DPP / command_source

Method command_source

src/dpp/commandhandler.cpp:33–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33command_source::command_source(const struct message_create_t& event) : guild_id(event.msg.guild_id), channel_id(event.msg.channel_id), command_id(0), issuer(event.msg.author), message_event(event), interaction_event(std::nullopt)
34{
35}
36
37command_source::command_source(const struct interaction_create_t& event) : guild_id(event.command.guild_id), channel_id(event.command.channel_id), command_id(event.command.id), command_token(event.command.token), issuer(event.command.usr), message_event(std::nullopt), interaction_event(event)
38{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected