-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
170 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
const ErisAddons = require('../index'); | ||
const {Client} = require('eris'); | ||
const client = new Client('bot token'); | ||
const ErisAddons = require('../index') | ||
const { Client } = require('eris') | ||
const client = new Client('bot token') | ||
|
||
client.on('messageCreate', message => { | ||
if(message.content.toLowerCase() === '!button') { | ||
const button = new ErisAddons.Button(); | ||
button.setStyle('DANGER'); | ||
button.setLabel('OMG, click this'); | ||
button.setCustomID('https://discord.gg/7UeV8jFz6m'); | ||
if (message.content.toLowerCase() === '!button') { | ||
const button = new ErisAddons.Button() | ||
.setStyle('DANGER') | ||
.setLabel('OMG, click this') | ||
.setCustomID('https://discord.gg/7UeV8jFz6m') | ||
|
||
message.channel.createMessage(button.build('Click this!')); | ||
message.channel.createMessage(button.build('Click this!')) | ||
} | ||
}); | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
const ErisAddons = require('../index'); | ||
const {Client} = require('eris'); | ||
const client = new Client('bot token'); | ||
const ErisAddons = require('../index') | ||
const { Client } = require('eris') | ||
const client = new Client('bot token') | ||
|
||
client.on("messageCreate", message => { | ||
if (message.content === "!embed") { | ||
const embed = new ErisAddons.Embed(); | ||
embed.setAuthor(message.author.username, message.author.avatarURL); | ||
embed.setTitle('Title of embed'); | ||
embed.setDescription('Description of embed'); | ||
embed.addField('The field\'s name of embed', 'The field\'s description of the embed'); | ||
embed.setColor('0x7289DA'); | ||
embed.setThumbnail(message.author.avatarURL); | ||
embed.setFooter(message.author.username, message.author.avatarURL); | ||
embed.setTimestamp(); | ||
message.channel.createMessage(embed.build('Hello, world!')); | ||
const embed = new ErisAddons.Embed() | ||
.setAuthor(message.author.username, message.author.avatarURL) | ||
.setTitle('Title of embed') | ||
.setDescription('Description of embed') | ||
.addField('The field\'s name of embed', 'The field\'s description of the embed') | ||
.setColor('0x7289DA') | ||
.setThumbnail(message.author.avatarURL) | ||
.setFooter(message.author.username, message.author.avatarURL) | ||
.setTimestamp() | ||
|
||
message.channel.createMessage(embed.build('Hello, world!')) | ||
} | ||
}); | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
const ErisAddons = require('../index'); | ||
const {Client} = require('eris'); | ||
const client = new Client('bot token'); | ||
const ErisAddons = require('../index') | ||
const { Client } = require('eris') | ||
const client = new Client('bot token') | ||
|
||
client.on('messageCreate', message => { | ||
if(message.content.toLowerCase() === '!selectmenu') { | ||
const menu = new ErisAddons.SelectMenu(); | ||
menu.setPlaceholder('Select this'); | ||
menu.addOption('Oh, click this', 'Click this for select', 'option value', '🔥'); | ||
menu.addOption('Another option', 'Click this for select', 'option value 2', '💧'); | ||
menu.setCustomID('select'); | ||
if (message.content.toLowerCase() === '!selectmenu') { | ||
const menu = new ErisAddons.SelectMenu() | ||
.setPlaceholder('Select this') | ||
.addOption('Oh, click this', 'Click this for select', 'option value', '🔥') | ||
.addOption('Another option', 'Click this for select', 'option value 2', '💧') | ||
.setCustomID('select') | ||
|
||
message.channel.createMessage(menu.build('Click this')); | ||
message.channel.createMessage(menu.build('Click this')) | ||
} | ||
}); | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.