Class: LibDiscord::ApplicationRoleConnectionMetadata
- 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
- #get_application_role_connection_metadata_records(application_id:) ⇒ Response
- #update_application_role_connection_metadata_records(application_id:, json:) ⇒ Response
Methods inherited from Resource
Constructor Details
This class inherits a constructor from LibDiscord::Resource
Instance Method Details
#get_application_role_connection_metadata_records(application_id:) ⇒ Response
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
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 |