Search
Get Started
d-I❄
discord.js - Imagine ❄
•
4y ago
PAdventures
Is there a way to get the id of a channel by finding it using it's name?
If there isn
't
. Should this work instead
?
const channel = message.guild.channels.find('name', 'yara-audit-log')
const channel = message.guild.channels.find('name', 'yara-audit-log')
discord.js - Imagine ❄
Join
Support server for discord.js, a Node.js module to interact with Discord's apps API.
58,335
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
const
channel
=
message.guild.channels.
find
(
'name'
,
'yara-audit-log'
)
const
channel
=
message.guild.channels.
find
(
'name'
,
'yara-audit-log'
)
Similar Threads
Get channel by id
d-I❄
discord.js - Imagine ❄ / djs-questions
3y ago
There a way to get all message of a channel?
d-I❄
discord.js - Imagine ❄ / djs-questions
2y ago