getInvites

fun Message.getInvites(): List<String>

Find all invites in this message.


fun String.getInvites(): List<String>

Return all discord invites in this string.

Samples


fun main() { 
   //sampleStart 
   /** A discord invite url */
    public val invite: Regex = Regex("(https?://)?(www\\.)?(discord\\.(gg|me|io|com/invite)/)([^\\s]+)") 
   //sampleEnd
}