Class: LibDiscord::ApplicationRoleConnectionMetadata

Inherits:
Resource
  • Object
show all
Defined in:
lib/lib_discord/application_role_connection_metadata.rb

Overview

Application Role Connection Metadata

Do not instantiate an ApplicationRoleConnectionMetadata directly. Instead request one from an instance of Client.

client = LibDiscord::Client.new("Bot auth.token")
a = client["application_role_connection_metadata"]

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from LibDiscord::Resource

Instance Method Details

#get_application_role_connection_metadata_records(application_id:) ⇒ Response

Parameters:

Returns:

Raises:

See Also:



30
31
32
# File 'lib/lib_discord/application_role_connection_metadata.rb', line 30

def (application_id:)
  send_request(:get, "/applications/#{application_id}/role-connections/metadata")
end

#update_application_role_connection_metadata_records(application_id:, json:) ⇒ Response

Parameters:

Returns:

Raises:

See Also:



48
49
50
# File 'lib/lib_discord/application_role_connection_metadata.rb', line 48

def (application_id:, json:)
  send_request(:put, "/applications/#{application_id}/role-connections/metadata", json:)
end