module Discordrb::ServerAttributes

Basic attributes a server should have

Attributes

icon_id[R]

@return [String] the hexadecimal ID used to identify this server’s icon.

name[R]

@return [String] this server’s name.

Public Instance Methods

icon_url() click to toggle source

Utility function to get the URL for the icon image @return [String] the URL to the icon image

# File lib/discordrb/data/server.rb, line 14
def icon_url
  return nil unless @icon_id

  API.icon_url(@id, @icon_id)
end