MessageEmbedAttachmentBuilder¶
Description¶
Helper class to build embed attachments.
Methods¶
return type | signature |
---|---|
MessageEmbedAttachmentBuilder | set_proxy_url ( String proxy_url ) |
MessageEmbedAttachmentBuilder | set_height ( int height ) |
MessageEmbedAttachmentBuilder | set_width ( int width ) |
MessageEmbedAttachmentBuilder | set_size ( Vector2 size ) |
Dictionary | build ( ) |
Method Descriptions¶
-
MessageEmbedAttachmentBuilder MessageEmbedAttachmentBuilder ( String url )
Constructs a new
MessageEmbedAttachmentBuilder
instance.url
only supports http(s) and attachments based URL.
-
MessageEmbedAttachmentBuilder set_proxy_url ( String proxy_url )
Sets the proxy URL.
-
MessageEmbedAttachmentBuilder set_height ( int height )
Sets the image height.
-
MessageEmbedAttachmentBuilder set_width ( int width )
Sets the image width.
-
MessageEmbedAttachmentBuilder set_size ( Vector2 size )
Sets the image dimensions (width & height).
-
Dictionary build ( )
Returns the embed attachment data as a
Dictionary
.