Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Latest commit

 

History

History
128 lines (79 loc) · 2.73 KB

placeholders.md

File metadata and controls

128 lines (79 loc) · 2.73 KB

String Placeholders

Introduction

String placeholders are variables you can use in option-based commmands like the !welcomemessage command, the placeholders gives you a wider range of customizability, allowing you to show information dynamically.

All placeholders starts and ends with a percentage sign (%), and wraps the variable name, in combination with each other it would look like %username% if you wanted to get the users username.

In all of the following examples the AvaIre Central server will be used as the server example, and the user that will be used is JohnDoe#2854.

User Placeholders

%user%

Tags the user that triggered the the message.

Example

@JohnDoe#2854

%userid%

Gets the id of the user that triggered the the message.

Example

88739639380172800

%username%

Gets the username of the user that triggered the the message.

Example

JohnDoe

%userdisc%

Gets the discriminator of the user that triggered the the message.

Example

2854

Channel Placeholders

%channel%

Tags the channel that triggered the the message.

Example

#general

%channelid%

Gets the id of the channel that triggered the the message.

Example

299205123673030658

%channelname%

Gets the name of the channel that triggered the the message.

Example

general

Server Placeholders

%servername%

Gets the name of the server the message was triggered in.

Example

AvaIre Central

%serverid%

Gets the id of the server the message was triggered in.

Example

284083636368834561

Other Types of Placeholders

%br%

Creates a new line for the message, br will "break the row" of the current message, creating a new line.

Example

This is a
test message.