Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/database/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ CREATE TABLE chat_settings( broadcaster_id text not null primary key, slow_mode
INSERT INTO chat_settings (broadcaster_id) SELECT id FROM users;
ALTER TABLE users ADD COLUMN chat_color text not null default '#9146FF';
CREATE TABLE vips ( broadcaster_id text not null, user_id text not null, created_at text not null default '', primary key (broadcaster_id, user_id), foreign key (broadcaster_id) references users(id), foreign key (user_id) references users(id) );`,
Message: `Updating database to include API changes since last verison. See Twitch CLI changelog for more info.`,
Message: `Updating database to include API changes since last version. See Twitch CLI changelog for more info.`,
},
}

Expand Down
4 changes: 2 additions & 2 deletions internal/events/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,11 @@ func GetByTriggerAndTransportAndVersion(trigger string, transport string, versio
return latestEventSeen, nil
}

// Error for events with non-existent verison used
// Error for events with non-existent version used
if len(validEventBadVersions) != 0 {
errStr := fmt.Sprintf("Invalid version given. Valid version(s): %v", strings.Join(validEventBadVersions, ", "))
if version == "" {
errStr += "\nUse --verison to specify"
errStr += "\nUse --version to specify"
}
return nil, errors.New(errStr)
}
Expand Down