cityrp.discordrelay

CityRP Discord Relay

Functions

cityrp.discordrelay.AddCommand(cmd, func, args, helpinfo)

View source »

Add relay command function

Parameters

  • cmd

  • func

  • args

  • helpinfo

cityrp.discordrelay.sendImage(ply, img)

View source »

Send an image in Base64 form (for screengrab)

Parameters

  • ply

  • img

cityrp.discordrelay.sendPly(ply, text)

View source »

Send a message to the channel as a player

Parameters

  • ply

  • text

cityrp.discordrelay.sendRaw(text)

View source »

Send it raw, with no player and name as "Discord Relay"

Parameters

  • text

cityrp.discordrelay.writeMessages()

View source »

Get the latest message in a channel