Natives (Roles) - maddinat0r/samp-discord-connector GitHub Wiki
-
"Discord ID" is the actual ID that discord uses, whereas "Internal ID" is the integer needed to reference a given channel to the plugin. This is explained on the main page of this wiki.
-
It is important for dest strings to be of DCC_ID_SIZE size.
DCC_FindGuildByName
- Usage:
DCC_FindGuildByName(const guild_name[])
, whereguild_name
is the name of the guild. - Returns: Internal ID of the specified guild, with
DCC_Guild
tag.
DCC_FindGuildById
- Usage:
DCC_FindGuildById(const guild_id[])
, whereguild_id
is the Discord ID of the user. - Returns: Internal ID of the specified user, with
DCC_Guild
tag.
DCC_GetGuildId
- Usage:
DCC_GetGuildId(DCC_Guild:guild, dest[DCC_ID_SIZE], max_size = sizeof dest)
, whereguild
is the internal id for the given guild,dest
is an where the Discord ID will be stored as text, andmax_size
is the size of the given string. - Returns: (?) Relevant data is stored in the given parameter.
DCC_GetGuildName
- Usage:
DCC_GetGuildName(DCC_Guild:guild, dest[], max_size = sizeof dest)
, whereguild
is the internal id for the given guild,dest
is an where the guild name will be stored, andmax_size
is the size of the given string. - Returns: (?) Relevant data is stored in the given parameter.
DCC_GetGuildOwnerId
- Usage:
DCC_GetGuildOwnerId(DCC_Guild:guild, dest[DCC_ID_SIZE], max_size = sizeof dest)
, whereguild
is the internal id for the given user,dest
is an where the Discord owner's user ID will be stored as text, andmax_size
is the size of the given string. - Returns: (?) Relevant data is stored in the given parameter.
WIP