We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to reply with image for slash command
# example bot.application_command(:profile) do |event| event.respond(content: 'test') do |builder| builder.file = File.open('./test.png') # doesn't work (no error) builder.attachments = [File.open('./test.png')] # error (undefined method) end event.send_file # doesn't exist end
But there is no functional for that, Is there any way to do this?
The text was updated successfully, but these errors were encountered:
Interaction response API endpoint allows attachments.
Sorry, something went wrong.
This is a workaround that may suit your needs.
base64_image_content = '...' image = StringIO.new(Base64.decode64(base64_image_content)) # OR image = File.open('./test.png', 'r') @event.channel.send_file( image, caption: caption, filename: filename )
No branches or pull requests
Trying to reply with image for slash command
But there is no functional for that, Is there any way to do this?
The text was updated successfully, but these errors were encountered: