From 94b61990517af1015c6b647272d9d442f97e4b97 Mon Sep 17 00:00:00 2001 From: Bruce Marriner Date: Sun, 24 Jan 2016 13:21:32 -0600 Subject: [PATCH] ShouldReconnectOnError and Compress are defaulted to true with New() --- discord.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/discord.go b/discord.go index 6b3f6eb..9f3b3f9 100644 --- a/discord.go +++ b/discord.go @@ -33,8 +33,10 @@ func New(args ...interface{}) (s *Session, err error) { // Create an empty Session interface. s = &Session{ - State: NewState(), - StateEnabled: true, + State: NewState(), + StateEnabled: true, + Compress: true, + ShouldReconnectOnError: true, } // If no arguments are passed return the empty Session interface.