class Discordrb::IntegrationApplication

Bot/OAuth2 application for discord integrations

Attributes

bot[R]

@return [User, nil] the bot associated with this application.

description[R]

@return [String] the description of the application.

icon[R]

@return [String, nil] the icon hash of the application.

id[R]

@return [Integer] the ID of the application.

name[R]

@return [String] the name of the application.

summary[R]

@return [String] the summary of the application.

Public Class Methods

new(data, bot) click to toggle source
# File lib/discordrb/data/integration.rb, line 38
def initialize(data, bot)
  @id = data['id'].to_i
  @name = data['name']
  @icon = data['icon']
  @description = data['description']
  @summary = data['summary']
  @bot = Discordrb::User.new(data['user'], bot) if data['user']
end