Class: Discorb::Integration::Application

Inherits:
DiscordModel show all
Defined in:
lib/discorb/integration.rb

Overview

Represents an application for an integration.

Instance Attribute Summary collapse

Method Summary

Methods inherited from DiscordModel

#==, #eql?, #inspect

Instance Attribute Details

#bot -> Discorb::User? (readonly)

Returns:

  • (Discorb::User)

    The bot user associated with the application.

  • (nil)

    If the application has no bot user.



139
140
141
# File 'lib/discorb/integration.rb', line 139

def bot
  @bot
end

#description -> String (readonly)

Returns The description of the application.

Returns:

  • (String)

    The description of the application.



134
135
136
# File 'lib/discorb/integration.rb', line 134

def description
  @description
end

#icon -> Asset? (readonly)

Returns:

  • (Asset)

    The icon of the application.

  • (nil)

    If the application has no icon.



132
133
134
# File 'lib/discorb/integration.rb', line 132

def icon
  @icon
end

#id -> Discorb::Snowflake (readonly)

Returns The ID of the application.

Returns:



127
128
129
# File 'lib/discorb/integration.rb', line 127

def id
  @id
end

#name -> String (readonly)

Returns The name of the application.

Returns:

  • (String)

    The name of the application.



129
130
131
# File 'lib/discorb/integration.rb', line 129

def name
  @name
end

#summary -> String (readonly)

Returns The summary of the application.

Returns:

  • (String)

    The summary of the application.



136
137
138
# File 'lib/discorb/integration.rb', line 136

def summary
  @summary
end