From 8091b1229a348a33e0e016e1dc73f7cdd2eb38ff Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Sun, 2 Apr 2017 03:11:24 +0000 Subject: [PATCH] Fix some more --- commands/search/wattpad.js | 2 +- commands/search/youtube.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/search/wattpad.js b/commands/search/wattpad.js index 59e3d9c9..63a184da 100644 --- a/commands/search/wattpad.js +++ b/commands/search/wattpad.js @@ -24,7 +24,7 @@ module.exports = class WattpadCommand extends commando.Command { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'EMBED_LINKS'])) return; } console.log(`[Command] ${message.content}`); - let queryBook = encodeURI(args.book); + let queryBook = args.book; try { let response = await request .get('https://api.wattpad.com:443/v4/stories') diff --git a/commands/search/youtube.js b/commands/search/youtube.js index 21b61a5d..90a75712 100644 --- a/commands/search/youtube.js +++ b/commands/search/youtube.js @@ -27,7 +27,7 @@ module.exports = class YouTubeCommand extends commando.Command { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'EMBED_LINKS'])) return; } console.log(`[Command] ${message.content}`); - let videoToSearch = encodeURI(args.video); + let videoToSearch = args.video; try { let response = await request .get('https://www.googleapis.com/youtube/v3/search')