Variables

List of available variables to use throughout the configuration of various systems in John-Bot.

User Variables

VariableDescriptionExample

{user}

Displays the user's mention.

@User

{user.id}

Displays the user's ID.

982054684481167410

{user.username}

Displays the user's unique name (or name and tag).

exampleuser (or User#0001)

{user.global_name}

Displays the user's display name.

User

{user.avatar_url}

Displays the link to the user's avatar.

https://cdn.discordapp.com/avatars/958547309728256081/c83207e3ef95fb6c9198562d0d04714f.webp

Server Variables

VariableDescriptionExample

{server.name}

Displays the server name.

John-Bot

{server.id}

Displays the server ID.

959269961572962314

{server.icon_url}

Displays the server's icon.

https://cdn.discordapp.com/icons/959269961572962314/01f8699526e02fd34266e07835bd1de5.webp

{server.member_count}

Displays the number of members in the server.

100

Panel Variable

VariableDescriptionExample

{panel.ticket_number}

Displays the ticket number.

10

Ticket Variable

VariableDescriptionExample

{ticket}

Mentions the ticket.

#ticket

{ticket.id}

Displays the ticket ID.

959269961572962314

{ticket.name}

Displays the ticket name.

Ticket

Level Variables

VariableDescriptionExample

{level}

Displays the member's new level when they level up.

5

{reward.role}

Displays the role unlocked by the member when they level up.

Super Writer

YouTube Variables

VariableDescriptionExample

{video.title}

Displays the video title.

My Awesome YouTube Video

{video.description}

Displays the video description.

Subscribe to my channel and follow me on social media!

{video.id}

Displays the video ID.

q5mUj4KBOb0

{video.thumbnail}

Displays the video thumbnail.

https://img.youtube.com/vi/q5mUj4KBOb0/maxresdefault.jpg

{video.duration}

Displays the video duration.

2:46

{video.url}

Displays the video link.

https://www.youtube.com/watch?v=q5mUj4KBOb0

Twitch Variables

VariableDescriptionExample

{stream.title}

Displays the stream title.

My Awesome Twitch Stream

{stream.thumbnail}

Displays the stream preview thumbnail.

https://static-cdn.jtvnw.net/cf_vods/d2nvs31859zcd8/7598d62e16e0c582f970_minecraft_42915955291_1697387135/thumb/thumb0-1920x1080.jpg

{stream.game}

Displays the game being streamed.

Minecraft

{stream.game_icon_url}

Displays the game cover of the stream.

https://www.youtube.com/watch?v=q5mUj4KBOb0

{stream.viewer_count}

Displays the number of viewers watching the stream live.

1000

{stream.url}

Displays the stream link.

https://www.twitch.tv/minecraft

Channel Variables (YouTube and Twitch)

VariableDescriptionExample

{channel.url}

Displays the YouTube/Twitch channel link.

https://www.youtube.com/channel/UCZuEgzPq-NvOpd9NO0BGV5Q OR https://www.twitch.tv/minecraft

{channel.name}

Displays the YouTube/Twitch channel name.

Les Cowboys Fringants

{channel.icon_url}

Displays the YouTube/Twitch channel icon.

https://yt3.ggpht.com/ytc/AIdro_kW_w6T3kawT7TZh99MUbevUopZLNhe_5Mxag3RwTOg8mE=s800-c-k-c0x00ffffff-no-rj-mo OR https://static-cdn.jtvnw.net/jtv_user_pictures/c6284d38-5148-424b-a6cc-be06d2fc4aec-profile_image-300x300.png

Last updated