Guest User

Untitled

a guest
Nov 20th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. let showChannel (ch: SocketGuildChannel) =
  2. sprintf "(%i, %s)" ch.Id ch.Name
  3.  
  4. let private guilds : Handler = fun client msg _ ->
  5. let join ch (xs: seq<string>) = String.Join(ch, xs)
  6. client.Guilds |>
  7. Seq.map (fun g -> g.Name + ": [" + (Seq.map showChannel g.Channels |> join "; ") + "]")
  8. |> join ", "
  9. |> sendMsg client msg
Advertisement
Add Comment
Please, Sign In to add comment