Sha256: d63d62437ce6cb2e9cb169e9429fc83a2fe675ee200cc1b6a32f4446968c68bd

Contents?: true

Size: 841 Bytes

Versions: 2

Compression:

Stored size: 841 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

    %a{pure}
    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.20.0 sig/discorb/avatar.rbs
discorb-0.19.0 sig/discorb/avatar.rbs