Methods
Tomato6966 edited this page Jul 1, 2021
·
10 revisions
See all Methods for discord-yt-poster
:
- YTP#setChannel()
- YTP#getChannel()
- YTP#getChannels4User()
- YTP#editChannel()
- YTP#deleteChannel()
- YTP#getAllChannels()
- YTP#deleteAllChannels()
- YTP#getChannelInfo()
- YTP#getLatestVideos()
/** Set a new YTChannel to a Guild ID
* @param {string} ChannelLink Youtube Channel Link, example: https://youtube.com/c/Tomato6966
* @param {OBJECT|DiscordChannel} DiscordChannel DiscordChannel with ID && guild parameters
* @param {OBJECT|DiscordUser} DiscordUser DiscordUser with ID parameter. who owns the Link
* @param {string} Notification Notification Message | OPTIONAL | DEFAULT: uses the options
* @param {Boolean} preventDuplicates Default: True
* Returns
*/
YTP.setChannel(ChannelLink, DiscordChannel, DiscordUser, Notification = this.options.defaults.Notification, preventDuplicates = true)
/** Get YTChannel for LINK
* @param {string} DiscordGuildID Discord Guild id
* @param {string} ChannelLink Youtube Channel Link, example: https://youtube.com/c/Tomato6966
*/
YTP.getChannel(DiscordGuildID, ChannelLink)
/** Get YTChannels for User
* @param {string} DiscordGuildID Discord Guild id
* @param {OBJECT|DiscordUser} DiscordUser DiscordUser with ID parameter
*/
YTP.getChannels4User(DiscordGuildID, DiscordUser)
/** Edit a specific YTChannel in a Guild ID
* @param {string} ChannelLink Youtube Channel Link, example: https://youtube.com/c/Tomato6966
* @param {OBJECT|DiscordChannel} DiscordChannel DiscordChannel with ID && guild parameters
* @param {OBJECT|DiscordUser} DiscordUser DiscordUser with ID parameter. who owns the Link
* @param {string} Notification Notification Message | OPTIONAL | DEFAULT: uses the options
*/
YTP.editChannel(ChannelLink, DiscordChannel, DiscordUser, Notification = this.options.defaults.Notification)
/** Delete a specific YTChannel in a Guild
* @param {string} DiscordGuildID Discord Guild id
* @param {string} ChannelLink Youtube Channel Link, example: https://youtube.com/c/Tomato6966
*/
YTP.deleteChannel(DiscordGuildID, ChannelLink)
/** Gets all Channels of a Guild
* @param {string} DiscordGuildID Discord Guild id
*/
YTP.getAllChannels(DiscordGuildID)
/** Delete all Channels in a GUild
* @param {string} DiscordGuildID Discord Guild id
*/
YTP.deleteAllChannels(DiscordGuildID)
/** Get Channel Information about a LINK
* @param {string} ChannelLink Youtube Channel Link, example: https://youtube.com/c/Tomato6966
*/
YTP.getChannelInfo(YOUTUBECHANNELLINK)
/** Get Videos of a LINK
* @param {string} ChannelLink Youtube Channel Link, example: https://youtube.com/c/Tomato6966
*/
YTP.getLatestVideos(YOUTUBECHANNELLINK)