DCC_GetMessageContent empty string?
# support-forum
s
here is my code
Copy code
cpp
#include     <a_samp>
#include    <discord-connector>

main() { }

new DCC_Channel:test_channel;

public OnGameModeInit()
{
    test_channel = DCC_FindChannelById("1073573583000969276");
    return 1;
}

public DCC_OnMessageCreate(DCC_Message:message)
{
    new
        DCC_User:author,
        DCC_Channel:channel,
        bool:is_bot,
        cmdtext[256];

    DCC_GetMessageChannel(message, channel);
    DCC_GetMessageAuthor(message, author);
    DCC_GetMessageContent(message, cmdtext, sizeof(cmdtext));
    DCC_IsUserBot(author, is_bot);

    if(is_bot)
        return 0;

    new str[200];
    format(str, sizeof str, "Message: %s", cmdtext);
    DCC_SendChannelMessage(test_channel, str);
    return 1;
}
discord version 0.3.5 and compiler 3.10.10
d
update to 0.3.6
s
thanks its worked now
3 Views