How to send a message in general chat? #646
Answered
by
TheDevYellowy
Ivansing23
asked this question in
Q&A
-
Sorry if it's a bit of a silly question, but I'm new to this and I, for the life of me, cannot figure out how to send a message in a selected text channel. I tried to use client.channels.fetch(channel_id) but it keeps returning a promise of some kind. I cannot actually access a channel, So I can use channel.send(). Does anyone have a bit of code to send a message? |
Beta Was this translation helpful? Give feedback.
Answered by
TheDevYellowy
May 5, 2023
Replies: 1 comment 10 replies
-
You can await client.channels.fetch(channel_id) and that should remove the promise and allow you to access the send function |
Beta Was this translation helpful? Give feedback.
10 replies
Answer selected by
aiko-chan-ai
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can await client.channels.fetch(channel_id) and that should remove the promise and allow you to access the send function