~williewillus/r16

92bbc4f183a26cfaedfcf1950c76fb6c8c392c2f — Vincent Lee a month ago 07f05e5
Fix channel and user trick-local-storage not saving properly
1 files changed, 2 insertions(+), 2 deletions(-)

M main.rkt
M main.rkt => main.rkt +2 -2
@@ 301,8 301,8 @@
(define (storage-info message type)
  (match type
    ['guild   (cons 65536 'global)]
    ['channel (cons 8192  (hash-ref message 'channel_id))]
    ['user    (cons 2048  (message-author-id message))]
    ['channel (cons 8192  (string->symbol (hash-ref message 'channel_id)))]
    ['user    (cons 2048  (string->symbol (message-author-id message)))]
    [_        (cons 0     #f)]))

(define/contract (read-storage trick message type)