Home - maddinat0r/samp-discord-connector GitHub Wiki
Welcome to the samp-discord-connector wiki!
Addressing a few common misconceptions:
- Discord IDs are too large to fit inside pawn's 32-bit integers. Discord IDs must be provided as strings and converted to DCC integers through the DCC_Get* functions. The plugin stores the real IDs internally, your script will only contain the indexes for each of those.
- To send a private message to a user, you first have to open a PM channel by calling
DCC_CreatePrivateChannel
, passing a result callback, and callingDCC_GetCreatedPrivateChannel
in the result callback. The latter will return a channel id, which you can use to call other channel natives (for exampleDCC_SendChannelMessage
) with.
Reference
(( Work in progress ))