Sha256: ac4d952664ad6f61d812146207796379b0ab13d95525aebf74462b5724245e85
Contents?: true
Size: 827 Bytes
Versions: 2
Compression:
Stored size: 827 Bytes
Contents
module Discorb # # Represents a default avatar. class DefaultAvatar < Discorb::DiscordModel # # Initialize a new instance of the DefaultAvatar class. # @private def initialize: (untyped discriminator) -> void # # Returns the URL of the avatar. # # @param [String] image_format The image format. This is compatible with {Asset#url}, will be ignored. # @param [Integer] size The size of the image. This is compatible with {Asset#url}, will be ignored. # # @return [String] URL of the avatar. # # rubocop: disable Lint/UnusedMethodArgument def url: (?image_format: String?, ?size: Integer) -> String def inspect: -> String # @return [false] For compatibility with {Asset}, always `false`. attr_reader animated?: bool end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
discorb-0.18.1 | sig/discorb/avatar.rbs |
discorb-0.18.0 | sig/discorb/avatar.rbs |