diff --git a/src/structures/Guild.js b/src/structures/Guild.js
index 749701bd4..f6c98a433 100644
--- a/src/structures/Guild.js
+++ b/src/structures/Guild.js
@@ -444,6 +444,7 @@ class Guild {
/**
* Performs a search within the entire guild.
+ * This is only available when using a user account.
* @param {MessageSearchOptions} [options={}] Options to pass to the search
* @returns {Promise>}
* An array containing arrays of messages. Each inner array is a search context cluster.
@@ -457,7 +458,7 @@ class Guild {
* console.log(`I found: **${hit}**, total results: ${res.totalResults}`);
* }).catch(console.error);
*/
- search(options) {
+ search(options = {}) {
return this.client.rest.methods.search(this, options);
}
diff --git a/src/structures/interfaces/TextBasedChannel.js b/src/structures/interfaces/TextBasedChannel.js
index 5c15a89d9..79ba34b1e 100644
--- a/src/structures/interfaces/TextBasedChannel.js
+++ b/src/structures/interfaces/TextBasedChannel.js
@@ -218,6 +218,7 @@ class TextBasedChannel {
/**
* Performs a search within the channel.
+ * This is only available when using a user account.
* @param {MessageSearchOptions} [options={}] Options to pass to the search
* @returns {Promise>}
* An array containing arrays of messages. Each inner array is a search context cluster.
@@ -231,7 +232,7 @@ class TextBasedChannel {
* console.log(`I found: **${hit}**, total results: ${res.totalResults}`);
* }).catch(console.error);
*/
- search(options) {
+ search(options = {}) {
return this.client.rest.methods.search(this, options);
}
diff --git a/src/util/Constants.js b/src/util/Constants.js
index 1a15ade30..db3892600 100644
--- a/src/util/Constants.js
+++ b/src/util/Constants.js
@@ -154,7 +154,7 @@ const Endpoints = exports.Endpoints = {
typing: `${base}/typing`,
permissions: `${base}/permissions`,
webhooks: `${base}/webhooks`,
- search: `${base}/search`,
+ search: `${base}/messages/search`,
ack: `${base}/ack`,
pins: `${base}/pins`,
Pin: messageID => `${base}/pins/${messageID}`,