summaryrefslogtreecommitdiff
path: root/src/abaddon.cpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2022-06-05 21:41:57 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2022-06-05 21:41:57 -0400
commit270730d9b36c8fc3a221da7e565632c1432d41c6 (patch)
treeed67d9fcec4df6287f3dd13cb997297d6af50ec8 /src/abaddon.cpp
parent4ec5c1dfccaa5ce3bce5dc22a95e91d781262345 (diff)
downloadabaddon-portaudio-270730d9b36c8fc3a221da7e565632c1432d41c6.tar.gz
abaddon-portaudio-270730d9b36c8fc3a221da7e565632c1432d41c6.zip
start attachments (image paste and upload)
Diffstat (limited to 'src/abaddon.cpp')
-rw-r--r--src/abaddon.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/abaddon.cpp b/src/abaddon.cpp
index 2e8ecaa..05e1942 100644
--- a/src/abaddon.cpp
+++ b/src/abaddon.cpp
@@ -743,7 +743,7 @@ void Abaddon::ActionChatLoadHistory(Snowflake id) {
});
}
-void Abaddon::ActionChatInputSubmit(std::string msg, Snowflake channel, Snowflake referenced_message) {
+void Abaddon::ActionChatInputSubmit(std::string msg, const std::vector<std::string> &attachment_paths, Snowflake channel, Snowflake referenced_message) {
if (msg.substr(0, 7) == "/shrug " || msg == "/shrug")
msg = msg.substr(6) + "\xC2\xAF\x5C\x5F\x28\xE3\x83\x84\x29\x5F\x2F\xC2\xAF"; // this is important
@@ -751,9 +751,9 @@ void Abaddon::ActionChatInputSubmit(std::string msg, Snowflake channel, Snowflak
if (!m_discord.HasChannelPermission(m_discord.GetUserData().ID, channel, Permission::VIEW_CHANNEL)) return;
if (referenced_message.IsValid())
- m_discord.SendChatMessage(msg, channel, referenced_message);
+ m_discord.SendChatMessage(msg, attachment_paths, channel, referenced_message);
else
- m_discord.SendChatMessage(msg, channel);
+ m_discord.SendChatMessage(msg, attachment_paths, channel);
}
void Abaddon::ActionChatEditMessage(Snowflake channel_id, Snowflake id) {