Class: Discordrb::IntegrationApplication

Inherits:
Object
  • Object
show all
Includes:
IDObject
Defined in:
lib/discordrb/data/integration.rb

Overview

Bot/OAuth2 application for discord integrations

Instance Attribute Summary collapse

Attributes included from IDObject

#id

Method Summary

Methods included from IDObject

#==, #creation_time, synthesise

Instance Attribute Details

#bot ⇒ User? (readonly)

Returns the bot associated with this application.

Returns:

  • (User, nil) —

    the bot associated with this application.



32
33
34
# File 'lib/discordrb/data/integration.rb', line 32

def bot
  @bot
end

#description ⇒ String (readonly)

Returns the description of the application.

Returns:

  • (String) —

    the description of the application.



29
30
31
# File 'lib/discordrb/data/integration.rb', line 29

def description
  @description
end

#icon ⇒ String? (readonly)

Returns the icon hash of the application.

Returns:

  • (String, nil) —

    the icon hash of the application.



26
27
28
# File 'lib/discordrb/data/integration.rb', line 26

def icon
  @icon
end

#name ⇒ String (readonly)

Returns the name of the application.

Returns:

  • (String) —

    the name of the application.



23
24
25
# File 'lib/discordrb/data/integration.rb', line 23

def name
  @name
end