Updated to include channel and guild IDs
This commit is contained in:
@@ -35,7 +35,7 @@ var storageSource = new storageHandler.Storage(userTable);
|
||||
* @param {string} link - URL of RSS feed.
|
||||
* @param {string} category - Category of RSS feed.
|
||||
*/
|
||||
exports.addSource = function (title, link, category, callback) {
|
||||
exports.addSource = function (title, link, category, guildId, channelId, callback) {
|
||||
|
||||
for (i = 0; i < feeds.length; i++) {
|
||||
if (feeds[i].link == link) {
|
||||
@@ -47,7 +47,9 @@ exports.addSource = function (title, link, category, callback) {
|
||||
"fields": {
|
||||
"title": title,
|
||||
"link": link,
|
||||
"category": category
|
||||
"category": category,
|
||||
'guild_id': guildId,
|
||||
"channel_id": channelId
|
||||
}
|
||||
}], function (err, record) {
|
||||
if (err) {
|
||||
|
||||
Reference in New Issue
Block a user