Skip to content

Commit 32a734a

Browse files
committed
Add deprecation warnings to v1 webhook models line#355
1 parent 0d5f845 commit 32a734a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/line/bot/v1/event/base.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ module Bot
1717
module Event
1818
class Base
1919
def initialize(src)
20+
warn '[DEPRECATION] Webhook models in V1 is deprecated. Please use V2 instead.' unless ENV['SUPRESS_V1_DEPRECATION_WARNINGS']
21+
2022
@src = src
2123
end
2224

0 commit comments

Comments
 (0)