getGuildByCode

@Nullable
open fun getGuildByCode(@NotNull code: @NotNull String): @Nullable Guild(source)

Retrieves the guild that has a matching invite code.

Return

the guild that the code belongs to, or null if no such guild exists

Parameters

code

the invite code being checked