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')
Was this page helpful?