distube 4.0.0-dev.4 → 4.0.0-dev.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -56,7 +56,7 @@ var require_package = __commonJS({
|
|
|
56
56
|
"package.json"(exports, module2) {
|
|
57
57
|
module2.exports = {
|
|
58
58
|
name: "distube",
|
|
59
|
-
version: "4.0.0-dev.
|
|
59
|
+
version: "4.0.0-dev.5",
|
|
60
60
|
description: "A Discord.js module to simplify your music commands and play songs with audio filters on Discord without any API key.",
|
|
61
61
|
main: "./dist/index.js",
|
|
62
62
|
module: "./dist/index.mjs",
|
|
@@ -2000,7 +2000,7 @@ function isMemberInstance(member) {
|
|
|
2000
2000
|
}
|
|
2001
2001
|
__name(isMemberInstance, "isMemberInstance");
|
|
2002
2002
|
function isTextChannelInstance(channel) {
|
|
2003
|
-
return !!channel && isSnowflake(channel.id) && isSnowflake(channel.guildId) && typeof channel.name === "string" && import_discord2.Constants.TextBasedChannelTypes.includes(channel.type) && typeof channel.
|
|
2003
|
+
return !!channel && isSnowflake(channel.id) && isSnowflake(channel.guildId) && typeof channel.name === "string" && import_discord2.Constants.TextBasedChannelTypes.includes(channel.type) && typeof channel.messages?.cache === "object";
|
|
2004
2004
|
}
|
|
2005
2005
|
__name(isTextChannelInstance, "isTextChannelInstance");
|
|
2006
2006
|
function isMessageInstance(message) {
|