Get @everyone Role

BlockRoles

Get the @everyone role in the specified server.

Inputs

Server IDRequired

ID of the server containing the @everyone role.

Outputs

Role ID

ID of the role.

Role Name

Name of the role.

Role Color

Hex color of the role.

Example: #000000

Role Hoist

Whether the role is hoisted.

Role Position

Position of the role.

Example: 1

Role Permissions

Permission bitset for the role.

Example: 104188992

Role Managed

Whether the role is managed.

Role Mentionable

Whether the role is mentionable.

Role Mention

Mention string for the role.

Role Icon URL

URL of the role's icon image, if set.

Role Unicode Emoji

Unicode emoji assigned to the role, if set.

Build a bot using blocks like Get @everyone Role

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_everyone_role

Inputs

FieldInventScript nameValue
Server IDserver_id

Outputs

FieldInventScript nameValue
Role IDrole_id
Role Namerole_name
Role Colorrole_colore.g. "#000000"
Role Hoistrole_hoist
Role Positionrole_positione.g. "1"
Role Permissionsrole_permissionse.g. "104188992"
Role Managedrole_managed
Role Mentionablerole_mentionable
Role Mentionrole_mention
Role Icon URLrole_icon
Role Unicode Emojirole_unicode_emoji

Example InventScript

everyoneRole := get_everyone_role(Args{server_id: trigger.server_id})
send_text_message(Args{
	channel_id:      trigger.channel_id,
	message_content: "Role ID: " + everyoneRole.role_id,
})

More roles blocks