You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but it's throwing an error if I use a function instead of defining a function in the Command call. Thoughts on this?
error is:
cannot use handle (type func(*slacker.Request, slacker.ResponseWriter)) as type func(slacker.Request, slacker.ResponseWriter) in argument to bot.Command
The text was updated successfully, but these errors were encountered:
On Wed, Aug 1, 2018 at 1:28 PM Raed Shomali ***@***.***> wrote:
A PR was recently merged to change the slacker.Request object to become
an interface.
Try dropping the * in *slacker.Request in your func definition.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#26 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAWFhd_x1CmOQE3jgCnVTg-Z4Zj1DCjks5uMeVJgaJpZM4Vq50y>
.
So I have the following code:
but it's throwing an error if I use a function instead of defining a function in the Command call. Thoughts on this?
error is:
The text was updated successfully, but these errors were encountered: