Comments (8)
Now I get you, thank you! I would be glad if we make it more clear about hasThread in its description.
Sure, we can welcome improvements and clarity. That would be a pull request we would be interested in.
from discord.js.
Sorry I was unable to make my pr draft
from discord.js.
Why would a new message immediately have a thread?
from discord.js.
I'm pretty sure this property checks if the message is the starter message for a thread, not just if it's a reply to one.
from discord.js.
Why would a new message immediately have a thread?
Why would not? I have created a thread and write my messages there, why should not they have a thread?
from discord.js.
I'm pretty sure this property checks if the message is the starter message for a thread, not just if it's a reply to one.
No, check thread's documentation: The thread started by this message This property is not suitable for checking whether a message has a thread, use [hasThread](https://discord.js.org/docs/packages/discord.js/14.14.1/Message:Class#hasThread) instead.
from discord.js.
Why would not? I have created a thread and write my messages there, why should not they have a thread?
A created message sent over the gateway will not have a thread created from it. Those happen afterwards.
I have created a thread and write my messages there
Those messages don't have a thread. They are in a thread. If you want to check if a message is sent within a thread, check the channel type it's sent in.
No, check thread's documentation:
The thread started by this message This property is not suitable for checking whether a message has a thread, use [hasThread](https://discord.js.org/docs/packages/discord.js/14.14.1/Message:Class#hasThread) instead.
This reply makes it clear that this is a misunderstanding of what you are reading. Dumbing it down:
Message#hasThread
checks if the message has a thread, as in, there is a thread created off the message.Message#thread
is the thread created off the message.
from discord.js.
Why would not? I have created a thread and write my messages there, why should not they have a thread?
A created message sent over the gateway will not have a thread created from it. Those happen afterwards.
I have created a thread and write my messages there
Those messages don't have a thread. They are in a thread. If you want to check if a message is sent within a thread, check the channel type it's sent in.
No, check thread's documentation:
The thread started by this message This property is not suitable for checking whether a message has a thread, use [hasThread](https://discord.js.org/docs/packages/discord.js/14.14.1/Message:Class#hasThread) instead.
This reply makes it clear that this is a misunderstanding of what you are reading. Dumbing it down:
Message#hasThread
checks if the message has a thread, as in, there is a thread created off the message.Message#thread
is the thread created off the message.
Now I get you, thank you! I would be glad if we make it more clear about hasThread
in its description
from discord.js.
Related Issues (20)
- Cannot add user option when using localizations HOT 3
- Bot can't enter the ready state in voice channels
- New Premium Button Style & Deep Linking URL Schemes HOT 2
- Conflict between discord.js + @nodes/types after upgrading HOT 20
- ws affected by a DoS when handling a request with many HTTP headers HOT 1
- update @discordjs/ws HOT 1
- Allowing a higher form body for auto completions HOT 6
- ReferenceError: ReadableStream is not defined HOT 3
- Update bot documentation HOT 1
- ws Gateway Close error messages are not properly logged HOT 7
- Unhandled 'error' event emitted HOT 10
- Cannot read properties of undefined (reading 'reduce') HOT 28
- Cannot read properties of undefined (reading 'reduce') HOT 2
- Using A Bot Anywhere with SlashCommandBuilder HOT 2
- Network errors when using @discordjs/ws v1.1.1 HOT 1
- GuildScheduledEvent creator property returns null HOT 1
- Unhandled 'error' event emitted, received [object Object] HOT 19
- Bad typings for auto moderation target type in audit logs
- Network errors still happening HOT 4
- TypeError: thread.members._add is not a function HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from discord.js.