#how to : make mod prefixes into a variable

6 messages · Page 1 of 1 (latest)

tough root
#

i know it's very simple but idk how to do it
instead of typing modprefix:mod item i want to make the prefix into a var

gentle ploverBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

oak shale
#
let mod = 'test'
event.create(`${mod}:wahtever`)
event.create(mod + ':wahtever')
tough root
#

so you don't need to specify the variable type ??

marble skiff
#

some people make functions that use an abbreviated version of the modname, which simply concat the modid to the front of the string and return it

tough root