#cant access method inside object

1 messages · Page 1 of 1 (latest)

sage radishBOT
#

<@&1004656351647117403> please have a look, thanks.

sage radishBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

upbeat spade
#

show the class

upbeat spade
#

you can't put code outside methods

#

also your code doesn't make sense

supple portal
#

I don't follow. Im trying to access addMapper() method

#

i have it above config.addMapper as example to show it exsit

#

what doesn't make sense ?

upbeat spade
supple portal
upbeat spade
#

so there are two problems here

#

first addMapper requires you to pass in a Class object

#

which you don't

#

and second

#

you are trying to assign void to Configuration

#

which you can't

supple portal
upbeat spade
supple portal
#

why is the line showing red under. with white text (sorry didnt include number lines into image)

supple portal
#

I think there is a misunderstanding. even with passing a class and not assigning void the issue is still there