mirror of
https://github.com/danbulant/discord.js
synced 2026-07-05 11:10:38 +00:00
Fix formatting.js code formatting and add a comment
This commit is contained in:
parent
cd2b79393a
commit
365746f288
1 changed files with 2 additions and 1 deletions
|
|
@ -11,7 +11,8 @@ myBot.login( "hello@example.com", "password1" );
|
||||||
myBot.on( "message", function( message ) {
|
myBot.on( "message", function( message ) {
|
||||||
// React to all messages with the content "$formatting".
|
// React to all messages with the content "$formatting".
|
||||||
if ( message.content === "$formatting" ) {
|
if ( message.content === "$formatting" ) {
|
||||||
|
// Show off formatting by sending a simple message with formatting codes.
|
||||||
myBot.sendMessage( message.channel, "**bold** ****semibold**** *italic* " +
|
myBot.sendMessage( message.channel, "**bold** ****semibold**** *italic* " +
|
||||||
"_**bold and italic**_ __underline__ ~~strikethrough~~")
|
"_**bold and italic**_ __underline__ ~~strikethrough~~" );
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue