refactor main, and fix bugs from initial manual run
Signed-off-by: Ava Affine <ava@sunnypup.io>
This commit is contained in:
parent
55f9725af1
commit
fed49ba3cb
6 changed files with 66 additions and 35 deletions
|
|
@ -259,7 +259,7 @@ func (e ConfessionsChannelLinkEvent) Data() map[string]string {
|
|||
}
|
||||
|
||||
func (e ConfessionsChannelLinkEvent) Validate() error {
|
||||
if len(e.ChannelID) > 1 || len(e.GuildID) > 1 {
|
||||
if len(e.ChannelID) <= 1 || len(e.GuildID) <= 1 {
|
||||
return errors.New(BadConfessionsLinkEventError)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue