- Added
<Message>.isMentioned
method. This property is used to check if the message is mentioning the bot.- Example:
client.On("message", (message) => { if (message.isMentioned()) { message.Reply("Hello!"); } });
- Improved logging for WebSocket events.
- Updated license notices at the top of each file to reflect the new repository owner change.
Update to this version by running the following command in your terminal:
deno add jsr:@nin0chat/[email protected]
- Added
<Client>.Once
method. This method is the same as<Client>.On
, but it only runs once.- Example:
client.Once("open", () => { Log.Info("Connected to the server!"); });
- Added
<Client>.Off
method. This method is used to remove an event listener.- Example:
const openEvent = () => { Log.Info("Connected to the server!"); }; client.On("open", openEvent); // This will remove the event listener. client.Off("open", openEvent);
- Added more consistent documentation to the following files:
@/Main.ts
@/Utilities/Types.ts
@/Utilities/Logger.ts