samp-discord-connector icon indicating copy to clipboard operation
samp-discord-connector copied to clipboard

How to use DCC_EditMessage?

Open ghost opened this issue 2 years ago • 1 comments

so I'm wanting to learn how the DCC_EditMessage function works

ghost avatar Apr 21 '22 02:04 ghost

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.

eoussama avatar Jul 19 '22 11:07 eoussama