Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "selfo.js", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "An npm personal module for interacting with the Discord API focusing on self-bot accounts", | ||
@@ -5,0 +5,0 @@ "main": "./src/index", |
@@ -46,4 +46,4 @@ <div align="center"> | ||
client.on('message', msg => { | ||
if (msg.content == 'flood') | ||
client.flood('channel/user id', 'Flood Message', 2000) | ||
if(msg.content == 'Hi') | ||
msg.channel.send('Hi xD'); | ||
}); | ||
@@ -67,3 +67,12 @@ | ||
## Contributing | ||
Before creating an issue, please ensure that it hasn't already been reported or suggested. | ||
## Contributing - bug fixes | ||
Contributions are welcome! Please feel free to open an issue or submit a pull request, for bug fixes or new features. | ||
1. Fork the repository | ||
2. Create a new branch `git checkout -b <new-feature-name>` | ||
3. Make the changes | ||
4. Commit the changes `git commit -am "Add new feature"` | ||
5. Push the changes `git push origin <new-feature-name>` | ||
6. Create a pull request on GitHub | ||
Many thanks! |
@@ -31,3 +31,6 @@ const Action = require('./Action'); | ||
} else { | ||
const message = channel._cacheMessage(new Message(channel, data, client)); | ||
let message; | ||
try { | ||
message = channel._cacheMessage(new Message(channel, data, client)); | ||
} catch(e) { message = null } // TODO message cause | ||
channel.lastMessageID = data.id; | ||
@@ -34,0 +37,0 @@ if (user) { |
@@ -15,3 +15,5 @@ const Action = require('./Action'); | ||
if (channel) { | ||
message = channel.messages.get(data.id); | ||
try { | ||
message = channel.messages.get(data.id); | ||
} catch (e) { message = null } | ||
if (message) { | ||
@@ -18,0 +20,0 @@ channel.messages.delete(message.id); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
AI-detected potential security risk
Supply chain riskAI has determined that this package may contain potential security issues or vulnerabilities.
Found 1 instance in 1 package
1373915
19544
76
4