XLQP Gen1
ElementsCompatibility aliases

AddDiscord

This compatibility method behaves like AddDiscordImg. Adds a Discord invite image or prompt with remembered open behavior. It is kept so scripts written with the older AddDiscord name continue to work.

AddDiscord

Compatibility alias

AddDiscord is an alternate name for AddDiscordImg. New code can use AddDiscordImg.

What it does

This compatibility method behaves like AddDiscordImg. Adds a Discord invite image or prompt with remembered open behavior. It is kept so scripts written with the older AddDiscord name continue to work.

When to use it

Use it to present a community invite in a visual card while controlling how the invite is opened. Prefer AddDiscordImg in new code so the method name matches the current API.

ElementFunction:AddDiscord(DiscordConfig)

local Result = Section:AddDiscord({
    Name = "Example",
})

Behavior and return value

This alias forwards to AddDiscordImg, so its options, callbacks, and returned value follow the canonical method.

Fields marked optional may be omitted. XLQP then uses the method’s built-in default or leaves that feature disabled.