Class: RubyCord::Integration::Application

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

Overview

Represents an application for an integration.

Instance Attribute Summary collapse

Method Summary

Methods inherited from DiscordModel

#==, #eql?, #inspect

Instance Attribute Details

#botRubyCord::User? (readonly)

Returns:

  • (RubyCord::User)

    The bot user associated with the application.

  • (nil)

    If the application has no bot user.



150
151
152
# File 'lib/rubycord/integration.rb', line 150

def bot
  @bot
end

#descriptionString (readonly)

Returns The description of the application.

Returns:

  • (String)

    The description of the application.



145
146
147
# File 'lib/rubycord/integration.rb', line 145

def description
  @description
end

#iconAsset? (readonly)

Returns:

  • (Asset)

    The icon of the application.

  • (nil)

    If the application has no icon.



143
144
145
# File 'lib/rubycord/integration.rb', line 143

def icon
  @icon
end

#idRubyCord::Snowflake (readonly)

Returns The ID of the application.

Returns:



138
139
140
# File 'lib/rubycord/integration.rb', line 138

def id
  @id
end

#nameString (readonly)

Returns The name of the application.

Returns:

  • (String)

    The name of the application.



140
141
142
# File 'lib/rubycord/integration.rb', line 140

def name
  @name
end

#summaryString (readonly)

Returns The summary of the application.

Returns:

  • (String)

    The summary of the application.



147
148
149
# File 'lib/rubycord/integration.rb', line 147

def summary
  @summary
end