Releases: JustAnEric/Revolution.js
Releases · JustAnEric/Revolution.js
v1.3.0
Changes:
- Added Message class
- Message.message is changed to Message.content
- Message.sent_by is now part of the User class
- Message.channel is now part of the Channel class
- Added User class
- Added Channel class
- Added Server class
- Added Bot(commands) parameter
- Added a way to easily do commands
- Added Bot.command()
Migrating from 1.2:
- Getting the ID of the channel of a message has been changed from
message.channel
tomessage.channel.id
- Getting the content of a message is changed from
message.message
tomessage.content
- The
servers
argument in the Bot constructor has been changed tochannels
v1.2.1
Changes:
- Multiple listeners of the same type can now be made
- Added
removeListener()
for removing a listener
v1.2.0
Changes:
- commands is now deprecated
- Removed internet check in commands
- Bot is now accessible directly
- Added ability to use a custom endpoint and websocket url
- Bot now uses websockets for events instead of directly pinging the server
- The call for sending messages now includes the token
Migrating from 1.0/1.1:
- Instead of using
commands.Bot()
, theBot
class should be used directly
v1.1.3
Changes:
- Added ready and connect events
- after_ping is now put in a try catch statement
v1.0.5
Changes:
- Remove bot.run call and instead directly fetch messages
v1.0.2
Changes:
- Make the call to bot.run not include the bot token