zyno-bot-addons
Advanced tools
Comparing version 1.0.13 to 1.0.14
{ | ||
"name": "zyno-bot-addons", | ||
"version": "1.0.13", | ||
"version": "1.0.14", | ||
"description": "Create easily addons for Zyno Bot", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
const GuildChannel = require('./guildChannel.js'); | ||
const CategoryChannel = require('./categoryChannel.js'); | ||
const Message = require('../message.js'); | ||
const { validatePermission, getAddonPermission, getResolvableDate, getVideoQualityMode, getRegion } = require('../../../utils/functions.js'); | ||
const { getMessageContent } = require('../../../utils/messageFunctions.js'); | ||
const scopes = require('../../../bitfields/scopes.js'); | ||
@@ -47,2 +49,11 @@ const Save = require('../../save.js'); | ||
} | ||
this.send = function(...content){ | ||
return new Promise((resolve, reject) => { | ||
if(content.length === 0) return reject(`At least one argument must be given`); | ||
let _content = getMessageContent(content); | ||
data.send(_content).then(msg => { | ||
resolve(new Message(msg, addon)); | ||
}).catch(reject); | ||
}); | ||
} | ||
this.edit = function(options){ | ||
@@ -49,0 +60,0 @@ return new Promise((resolve, reject) => { |
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
362212
7711