[20:50-3053] BulkMail\BulkMail.lua:26: args.autosend: "set" must be a string or function self:RegisterChatCommand({"/bulkmail", "/bm"}, { type = "group", args = { defaultdest = { name = "Default destination", type = "text", desc = "Set the default recipient of autosent items", get = function() return self.db.realm.defaultDestination end, set = function(dest) self.db.realm.defaultDestination = dest end, usage = "", }, autosend = { name = "AutoSend", type = "group", pass = true, desc = "AutoSend Options", args = { list = { name = "list", type = "text", desc = "Print current AutoSend list.", set = "ListAutoSendItems", usage = "", aliases = "ls", }, add = { name = "add", type = "text", desc = "Add items to the AutoSend list.", set = "AddAutoSendItem", usage = "[destination] [item2 item3 ...]", }, rm = { name = "rm", type = "text", desc = "Remove items from the AutoSend list.", set = "RemoveAutoSendItem", usage = " [item2 item3 ...]", }, rmdest = { name = "rmdest", type = "text", desc = "Remove all items corresponding to a particular destination from your AutoSend list.", set = "RemoveAutoSendDestination", usage = "", }, clear = { name = "clear", type = "text", desc = "Clear AutoSend list completely.", set = "ClearAutoSendList", validate = function(confirm) if confirm == "CONFIRM" then return true end end, error = "You must type 'CONFIRM' to clear.", usage = "CONFIRM", }, }, }, }, })