Class: Discordrb::Activity::Assets
- Inherits:
-
Object
- Object
- Discordrb::Activity::Assets
- Defined in:
- lib/discordrb/data/activity.rb
Overview
Assets for rich presence images and hover text
Instance Attribute Summary collapse
-
#application_id ⇒ String?
readonly
The application ID for these assets.
-
#large_image_id ⇒ String?
readonly
The asset ID for the large image of this activity.
-
#large_text ⇒ String?
readonly
Text displayed when hovering over the large iamge.
-
#small_image_id ⇒ String?
readonly
The asset ID for the small image of this activity.
- #small_text ⇒ String? readonly
Instance Method Summary collapse
-
#large_image_url(format = 'webp') ⇒ String
Utility function to get an Asset's large image URL.
-
#small_image_url(format = 'webp') ⇒ String
Utility function to get an Asset's large image URL.
Instance Attribute Details
#application_id ⇒ String? (readonly)
Returns the application ID for these assets.
174 175 176 |
# File 'lib/discordrb/data/activity.rb', line 174 def application_id @application_id end |
#large_image_id ⇒ String? (readonly)
Returns the asset ID for the large image of this activity.
162 163 164 |
# File 'lib/discordrb/data/activity.rb', line 162 def large_image_id @large_image_id end |
#large_text ⇒ String? (readonly)
Returns text displayed when hovering over the large iamge.
165 166 167 |
# File 'lib/discordrb/data/activity.rb', line 165 def large_text @large_text end |
#small_image_id ⇒ String? (readonly)
Returns the asset ID for the small image of this activity.
168 169 170 |
# File 'lib/discordrb/data/activity.rb', line 168 def small_image_id @small_image_id end |
#small_text ⇒ String? (readonly)
171 172 173 |
# File 'lib/discordrb/data/activity.rb', line 171 def small_text @small_text end |