Skip to content

Commit 875e3b8

Browse files
committed
Fix target methods in the deprecation warnings line#353
1 parent 32a734a commit 875e3b8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/line/bot/v1/client.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ def unset_default_rich_menu
861861
#
862862
# @return [Net::HTTPResponse]
863863
def set_rich_menus_alias(rich_menu_id, rich_menu_alias_id)
864-
warn '[DEPRECATION] `Line::Bot::Client#unset_default_rich_menu` is deprecated. Please use `Line::Bot::V2::MessagingApi::ApiClient#cancel_default_rich_menu` instead.' unless ENV['SUPRESS_V1_DEPRECATION_WARNINGS']
864+
warn '[DEPRECATION] `Line::Bot::Client#unset_default_rich_menu` is deprecated. Please use `Line::Bot::V2::MessagingApi::ApiClient#get_rich_menu_alias` instead.' unless ENV['SUPRESS_V1_DEPRECATION_WARNINGS']
865865

866866
channel_token_required
867867

@@ -1464,7 +1464,7 @@ def get_statistics_per_unit(unit:, from:, to:)
14641464
#
14651465
# @return [Net::HTTPResponse]
14661466
def get_aggregation_info
1467-
warn '[DEPRECATION] `Line::Bot::Client#get_audience_authority_level` is deprecated. Please use `Line::Bot::V2::MessagingApi::ApiClient#get_statistics_per_unit` instead.' unless ENV['SUPRESS_V1_DEPRECATION_WARNINGS']
1467+
warn '[DEPRECATION] `Line::Bot::Client#get_audience_authority_level` is deprecated. Please use `Line::Bot::V2::MessagingApi::ApiClient#get_aggregation_unit_usage` instead.' unless ENV['SUPRESS_V1_DEPRECATION_WARNINGS']
14681468

14691469
channel_token_required
14701470

@@ -1498,7 +1498,7 @@ def get_aggregation_list(limit: nil, start: nil)
14981498
#
14991499
# @return [Net::HTTPResponse]
15001500
def get_narrowcast_message_status(request_id)
1501-
warn '[DEPRECATION] `Line::Bot::Client#get_narrowcast_message_status` is deprecated. Please use `Line::Bot::V2::MessagingApi::ApiClient#get_statistics_per_unit` instead.' unless ENV['SUPRESS_V1_DEPRECATION_WARNINGS']
1501+
warn '[DEPRECATION] `Line::Bot::Client#get_narrowcast_message_status` is deprecated. Please use `Line::Bot::V2::MessagingApi::ApiClient#get_narrowcast_progress` instead.' unless ENV['SUPRESS_V1_DEPRECATION_WARNINGS']
15021502

15031503
channel_token_required
15041504

@@ -1537,7 +1537,7 @@ def multicast_by_phone_numbers(to, messages, headers: {}, payload: {})
15371537
#
15381538
# @return [Net::HTTPResponse]
15391539
def get_delivery_result_sent_by_phone_numbers(date)
1540-
warn '[DEPRECATION] `Line::Bot::Client#get_delivery_result_sent_by_phone_numbers` is deprecated. Please use `Line::Bot::V2::MessagingApi::ApiClient#audience_match` instead.' unless ENV['SUPRESS_V1_DEPRECATION_WARNINGS']
1540+
warn '[DEPRECATION] `Line::Bot::Client#get_delivery_result_sent_by_phone_numbers` is deprecated. Please use `Line::Bot::V2::MessagingApi::ApiClient#get_ad_phone_message_statistics` instead.' unless ENV['SUPRESS_V1_DEPRECATION_WARNINGS']
15411541

15421542
channel_token_required
15431543

@@ -1556,7 +1556,7 @@ def get_delivery_result_sent_by_phone_numbers(date)
15561556
#
15571557
# @return [Net::HTTPResponse]
15581558
def push_pnp(hashed_phone_number, messages, headers: {}, payload: {})
1559-
warn '[DEPRECATION] `Line::Bot::Client#push_pnp` is deprecated. Please use `Line::Bot::V2::MessagingApi::ApiClient#audience_match` instead.' unless ENV['SUPRESS_V1_DEPRECATION_WARNINGS']
1559+
warn '[DEPRECATION] `Line::Bot::Client#push_pnp` is deprecated. Please use `Line::Bot::V2::MessagingApi::ApiClient#push_messages_by_phone` instead.' unless ENV['SUPRESS_V1_DEPRECATION_WARNINGS']
15601560

15611561
channel_token_required
15621562

@@ -1575,7 +1575,7 @@ def push_pnp(hashed_phone_number, messages, headers: {}, payload: {})
15751575
#
15761576
# @return [Net::HTTPResponse]
15771577
def get_message_delivery_pnp(date)
1578-
warn '[DEPRECATION] `Line::Bot::Client#get_message_delivery_pnp` is deprecated. Please use `Line::Bot::V2::MessagingApi::ApiClient#audience_match` instead.' unless ENV['SUPRESS_V1_DEPRECATION_WARNINGS']
1578+
warn '[DEPRECATION] `Line::Bot::Client#get_message_delivery_pnp` is deprecated. Please use `Line::Bot::V2::MessagingApi::ApiClient#get_pnp_message_statistics` instead.' unless ENV['SUPRESS_V1_DEPRECATION_WARNINGS']
15791579

15801580
channel_token_required
15811581

0 commit comments

Comments
 (0)