Updated to include channel and guild IDs

This commit is contained in:
Logan Cusano
2023-02-25 04:50:51 -05:00
parent 895a9cefbc
commit 541148311a
3 changed files with 28 additions and 23 deletions

View File

@@ -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) {