getGuildWidgetOrNull

open suspend override fun getGuildWidgetOrNull(guildId: Snowflake): GuildWidget?(source)

Requests to get the widget of a Guild with the given id, returns null if the GuildWidget isn't present.

Throws

RequestException

if anything went wrong during the request.