Skip to content
Alex Martin edited this page Nov 27, 2019 · 4 revisions

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 calling DCC_GetCreatedPrivateChannel in the result callback. The latter will return a channel id, which you can use to call other channel natives (for example DCC_SendChannelMessage) with.

Reference

(( Work in progress ))

Clone this wiki locally