Xh4H / Discord.jl

The Julia Discord API Wrapper
MIT License
152 stars 23 forks source link

@enum ActivityFlags not exported in Julia 1.4 #22

Closed NTimmons closed 4 years ago

NTimmons commented 4 years ago

Version Info:

Julia Version 1.4.2
Commit 44fa15b150* (2020-05-23 18:35 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i5-6600 CPU @ 3.30GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-8.0.1 (ORCJIT, skylake)

The error:

client = Client("MYBOTID";
                 presence=(game=(name="$(curTime)", type=AT_STREAMING ),))
ERROR: LoadError: UndefVarError: AT_STREAMING not defined

Maybe something to do with: @boilerplate ActivityFlags :export :lower ?

christopher-dG commented 4 years ago
julia> using Discord

julia> Client("..."; presence=(game=(name="game", type=AT_STREAMING ),))
Discord.Client(shard=1/1, api=6, not logged in)

Make sure you're not using any special import like using Discord: Client.