#include "KakaoGameLib.h"
// [TODO] Set World ID
std::wstring worldId;
// [TODO] Set Guild ID
std::wstring guildId;
// [TODO] Set Template ID
std::wstring templateId;
// [TODO] Optional : Setting the value defined in the template message
std::map<std::wstring, std::wstring> arguments;
KakaoGame::Data::KGResult result;
KakaoGame::API::KGKakaoGuildChat kgKakaoGuildChat;
// Send guild chat message
kgKakaoGuildChat.sendGuildChatMessage(worldId, guildId, templateId, arguments, result);
if (result.isSuccess()) {
// Successfully sending guild chat message
}
else {
// Failed to send guild chat message
if (KakaoGame::Data::KGResultCode::ExceedDailyUsage == result.code) {
// Occurs when the daily quota (regardless of recipient) that one person can send for a specific app is exceeded
}
else {
// Other errors
}
}
|