This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
assert {:bad, :error} == Discord.send_message(%Message{}) | |
# We start at the Facade | |
Discord.send_message(%Message{}) { | |
# The Facade calls the Delegate | |
Delegate.send_message(message) { | |
# The Delegate checks if the Server has a patch for send_message/1 | |
Server.delegate(Discord, :send_message, [message]) { | |
# The Server doesn't, so it calls the Original | |
Original.send_message(message) { |
OlderNewer