Skip to content

Check where the message came from and get the attachment #1081

Closed Answered by key2peace
CatAnonymous asked this question in Q&A
Discussion options

You must be logged in to vote
  1. Private messages have no guild_id
  2. when a user uploads an image or audio or text file, they should be available in $message->attachments
  3. your example code misses the closing for the $discord->on part, put }); before the closing }

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@CatAnonymous
Comment options

Answer selected by key2peace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #1080 on April 02, 2023 09:52.