Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

c2.Channel:is_twitch_channel() does not guarantee Twitch-specific functions work #5638

Open
4 tasks done
Mm2PL opened this issue Oct 9, 2024 · 0 comments
Open
4 tasks done
Assignees
Labels
bug Something isn't working as intended, or works in a confusing/unintuitive way for the user Feature: EXPERIMENTAL Plugins Stuff related to EXPERIMENTAL Lua plugin support

Comments

@Mm2PL
Copy link
Collaborator

Mm2PL commented Oct 9, 2024

Checklist

  • I'm reporting a problem with Chatterino
  • I've verified that I'm running the most recent nightly build or stable release
  • I've looked for my problem on the wiki
  • I've searched the issues and pull requests for similar looking reports

Describe your issue

Given:

local c = c2.Channel:by_name("/whispers")
c:is_twitch_channel() -- true
c:is_mod() -- this errors: Expired or non-twitch c2.Channel used - use c2.Channel:is_valid() and c2.Channel:is_twitch_channel()

Do this after the sol migration

Screenshots

n/a

OS and Chatterino Version

commit 30560fc (HEAD -> chore/move-everything-to-sol, origin/chore/move-everything-to-sol)

@Mm2PL Mm2PL added bug Something isn't working as intended, or works in a confusing/unintuitive way for the user Feature: EXPERIMENTAL Plugins Stuff related to EXPERIMENTAL Lua plugin support labels Oct 9, 2024
@Mm2PL Mm2PL self-assigned this Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as intended, or works in a confusing/unintuitive way for the user Feature: EXPERIMENTAL Plugins Stuff related to EXPERIMENTAL Lua plugin support
Projects
None yet
Development

No branches or pull requests

1 participant