Bug with context_menus example. #1212
-
Hey was playin around with the context_menus example and was trying to compile it but running into: "cannot use discordgo.MessageFlagsEphemeral (constant 64 of type discordgo.MessageFlags) as type uint64 in struct literal" Is there something i'm missing thats simple to fix this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Sorry the fix was to just cast it to uint64. |
Beta Was this translation helpful? Give feedback.
-
I suspect you're using The current fix is, yes, conversion to |
Beta Was this translation helpful? Give feedback.
I suspect you're using
@latest
version. However example uses@master
(i.e. code frommaster
branch version).There was a change in types recently, that's why you're getting this error.
The current fix is, yes, conversion to
uint64
, but oncev0.25.0
comes out, you will no longer need it.