diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-04-13 04:33:19 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-04-13 04:33:19 -0400 |
commit | b6c6c03f879f282110b08a2d41a5cac143ff41aa (patch) | |
tree | 09cf3b8d7b2cb8e084323c477e57fee1b5b0fa00 /discord | |
parent | 42d38a89b244a7053ef7247fe2f4000138c8d323 (diff) | |
download | abaddon-portaudio-b6c6c03f879f282110b08a2d41a5cac143ff41aa.tar.gz abaddon-portaudio-b6c6c03f879f282110b08a2d41a5cac143ff41aa.zip |
pass message object through signal instead of just the id
Diffstat (limited to 'discord')
-rw-r--r-- | discord/discord.cpp | 2 | ||||
-rw-r--r-- | discord/discord.hpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/discord/discord.cpp b/discord/discord.cpp index 4af07d5..baa0b28 100644 --- a/discord/discord.cpp +++ b/discord/discord.cpp @@ -1119,7 +1119,7 @@ void DiscordClient::HandleGatewayMessageCreate(const GatewayMessage &msg) { StoreMessageData(data); AddMessageToChannel(data.ID, data.ChannelID); AddUserToGuild(data.Author.ID, *data.GuildID); - m_signal_message_create.emit(data.ID); + m_signal_message_create.emit(data); } void DiscordClient::HandleGatewayMessageDelete(const GatewayMessage &msg) { diff --git a/discord/discord.hpp b/discord/discord.hpp index cd3286c..b0e6cb6 100644 --- a/discord/discord.hpp +++ b/discord/discord.hpp @@ -283,7 +283,7 @@ private: // signals public: typedef sigc::signal<void> type_signal_gateway_ready; - typedef sigc::signal<void, Snowflake> type_signal_message_create; + typedef sigc::signal<void, Message> type_signal_message_create; typedef sigc::signal<void, Snowflake, Snowflake> type_signal_message_delete; typedef sigc::signal<void, Snowflake, Snowflake> type_signal_message_update; typedef sigc::signal<void, Snowflake> type_signal_guild_member_list_update; |