whether you actually did it or not, you've got caught doing something that you're not supposed to be doing, so you must be punished. you'll probably just be given lines to write, but it depends on the staff that is holding the detention. some of them can be very imaginative about the punishments given out.