Get Server

BlockServers

Retrieve a Discord server's information by its ID.

Inputs

Server IDRequired

ID of the server to retrieve.

Outputs

Server ID

ID of the server.

Server Name

Name of the server.

Server Icon URL

Icon URL for the server.

Server Banner URL

Banner URL for the server.

Region

Server region.

Owner ID

ID of the server owner.

Member Count

Approximate member count for the server.

Example: 42

Verification Level

Server verification level.

Example: 2

Public Updates Channel ID

ID of the public updates channel.

System Channel ID

ID of the system channel.

Description

Server description.

NSFW Level

NSFW level of the server.

Example: 0

Premium Tier

Boost tier of the server.

Example: 2

Premium Subscription Count

Number of boosts on the server.

Example: 3

Boost Role ID

ID of the Server Booster role.

Rules Channel ID

ID of the rules channel.

Build a bot using blocks like Get Server

Use this block in our visual flow editor. Bots are hosted 24/7 for free on inventor.bot.

Advanced Documentation

This documentation can be useful when using code mode. View as Markdown

ID: get_discord_guild

Inputs

FieldInventScript nameValue
Server IDserver_id

Outputs

FieldInventScript nameValue
Server IDserver_id
Server Nameserver_name
Server Icon URLserver_icon_url
Server Banner URLserver_banner_url
Regionregion
Owner IDowner_id
Member Countmember_counte.g. "42"
Verification Levelverification_levele.g. "2"
Public Updates Channel IDpublic_updates_channel_id
System Channel IDsystem_channel_id
Descriptiondescription
NSFW Levelnsfw_levele.g. "0"
Premium Tierpremium_tiere.g. "2"
Premium Subscription Countpremium_subscription_counte.g. "3"
Boost Role IDboost_role_id
Rules Channel IDrules_channel_id

Example InventScript

guild := get_discord_guild(Args{server_id: trigger.server_id})
send_text_message(Args{
	channel_id:      trigger.channel_id,
	message_content: "Server ID: " + guild.server_id,
})

More servers blocks