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,
})
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_guildInputs
| Field | InventScript name | Value |
|---|---|---|
| Server ID | server_id |
Outputs
| Field | InventScript name | Value |
|---|---|---|
| Server ID | server_id | |
| Server Name | server_name | |
| Server Icon URL | server_icon_url | |
| Server Banner URL | server_banner_url | |
| Region | region | |
| Owner ID | owner_id | |
| Member Count | member_count | e.g. "42" |
| Verification Level | verification_level | e.g. "2" |
| Public Updates Channel ID | public_updates_channel_id | |
| System Channel ID | system_channel_id | |
| Description | description | |
| NSFW Level | nsfw_level | e.g. "0" |
| Premium Tier | premium_tier | e.g. "2" |
| Premium Subscription Count | premium_subscription_count | e.g. "3" |
| Boost Role ID | boost_role_id | |
| Rules Channel ID | rules_channel_id |