Class: Discordrb::Attachment

Inherits:
Object
  • Object
show all
Includes:
IDObject
Defined in:
lib/discordrb/data.rb

Overview

An attachment to a message

Instance Attribute Summary collapse

Attributes included from IDObject

#id

Instance Method Summary collapse

Methods included from IDObject

#==, #creation_time, synthesise

Instance Attribute Details

#filenameString (readonly)


2339
2340
2341
# File 'lib/discordrb/data.rb', line 2339

def filename
  @filename
end

#heightInteger? (readonly)


2348
2349
2350
# File 'lib/discordrb/data.rb', line 2348

def height
  @height
end

#messageMessage (readonly)


2329
2330
2331
# File 'lib/discordrb/data.rb', line 2329

def message
  @message
end

#proxy_urlString (readonly)


2336
2337
2338
# File 'lib/discordrb/data.rb', line 2336

def proxy_url
  @proxy_url
end

#sizeInteger (readonly)


2342
2343
2344
# File 'lib/discordrb/data.rb', line 2342

def size
  @size
end

#urlString (readonly)


2332
2333
2334
# File 'lib/discordrb/data.rb', line 2332

def url
  @url
end

#widthInteger? (readonly)


2345
2346
2347
# File 'lib/discordrb/data.rb', line 2345

def width
  @width
end

Instance Method Details

#image?true, false


2367
2368
2369
# File 'lib/discordrb/data.rb', line 2367

def image?
  !(@width.nil? || @height.nil?)
end