We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ef6ed7 commit 4194720Copy full SHA for 4194720
cmd-urbandictionary.go
@@ -5,14 +5,15 @@ import (
5
"net/url"
6
"regexp"
7
"strconv"
8
+ "strings"
9
10
"github.com/JoshuaDoes/urbandictionary"
11
//prettyTime "github.com/andanhm/go-prettytime"
12
"github.com/bwmarrin/discordgo"
13
)
14
15
func commandUrbanDictionary(args []string, env *CommandEnvironment) *discordgo.MessageEmbed {
- results, err := urbandictionary.Query(args[0])
16
+ results, err := urbandictionary.Query(strings.Join(args, " "))
17
if err != nil {
18
return NewErrorEmbed("Urban Dictionary Error", "There was an error getting a result for that term.")
19
}
0 commit comments