samp-discord-connector
samp-discord-connector copied to clipboard
How to use DCC_EditMessage?
so I'm wanting to learn how the DCC_EditMessage
function works
From the include file, the prototype of the function is:
native DCC_EditMessage(DCC_Message:message, const content[], DCC_Embed:embed = DCC_Embed:0);
So you can assume that the function takes in the target message you want to edit and the new content ( and an optional embed flag).
As for the target message, you can fetch it using native DCC_Message:DCC_GetCreatedMessage();
inside the DCC_SendChannelMessage
result callback.