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.
176 177 178 |
# File 'lib/discordrb/data/activity.rb', line 176 def application_id @application_id end |
#large_image_id ⇒ String? (readonly)
Returns the asset ID for the large image of this activity.
164 165 166 |
# File 'lib/discordrb/data/activity.rb', line 164 def large_image_id @large_image_id end |
#large_text ⇒ String? (readonly)
Returns text displayed when hovering over the large iamge.
167 168 169 |
# File 'lib/discordrb/data/activity.rb', line 167 def large_text @large_text end |
#small_image_id ⇒ String? (readonly)
Returns the asset ID for the small image of this activity.
170 171 172 |
# File 'lib/discordrb/data/activity.rb', line 170 def small_image_id @small_image_id end |
#small_text ⇒ String? (readonly)
173 174 175 |
# File 'lib/discordrb/data/activity.rb', line 173 def small_text @small_text end |