Class: Discorb::Application

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

Overview

Represents a Discord application.

Defined Under Namespace

Classes: Flag, Team

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DiscordModel

#==, #eql?

Instance Attribute Details

#bot_public -> Boolean (readonly) Also known as: bot_public?

Returns Whether the application's bot is public.

Returns:

  • (Boolean)

    Whether the application's bot is public.



25
26
27
# File 'lib/discorb/application.rb', line 25

def bot_public
  @bot_public
end

#bot_require_code_grant -> Boolean (readonly) Also known as: bot_require_code_grant?

Returns Whether the application's bot requires a code grant.

Returns:

  • (Boolean)

    Whether the application's bot requires a code grant.



28
29
30
# File 'lib/discorb/application.rb', line 28

def bot_require_code_grant
  @bot_require_code_grant
end

#description -> String (readonly)

Returns The application's description.

Returns:

  • (String)

    The application's description.



15
16
17
# File 'lib/discorb/application.rb', line 15

def description
  @description
end

#flags -> Discorb::Application::Flag (readonly)

Returns The application's flags.

Returns:



31
32
33
# File 'lib/discorb/application.rb', line 31

def flags
  @flags
end

#icon -> Discorb::Asset (readonly)

Returns The application's icon.

Returns:



13
14
15
# File 'lib/discorb/application.rb', line 13

def icon
  @icon
end

#id -> Discorb::Snowflake (readonly)

Returns The application's ID.

Returns:



9
10
11
# File 'lib/discorb/application.rb', line 9

def id
  @id
end

#name -> String (readonly)

Returns The application's name.

Returns:

  • (String)

    The application's name.



11
12
13
# File 'lib/discorb/application.rb', line 11

def name
  @name
end

#owner -> Discorb::User (readonly)

Returns The application's owner.

Returns:



21
22
23
# File 'lib/discorb/application.rb', line 21

def owner
  @owner
end

#summary -> String (readonly)

Returns The application's summary.

Returns:

  • (String)

    The application's summary.



17
18
19
# File 'lib/discorb/application.rb', line 17

def summary
  @summary
end

#team -> Discorb::Application::Team (readonly)

Returns The application's team.

Returns:



23
24
25
# File 'lib/discorb/application.rb', line 23

def team
  @team
end

#verify_key -> String (readonly)

Returns The application's public key.

Returns:

  • (String)

    The application's public key.



19
20
21
# File 'lib/discorb/application.rb', line 19

def verify_key
  @verify_key
end

Instance Method Details

#inspect -> Object



57
58
59
# File 'lib/discorb/application.rb', line 57

def inspect
  "#<#{self.class} id=#{@id}>"
end