question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug]: Button regex does not work

See original GitHub issue

Check The Docs

  • I double checked the docs and couldn’t find any useful information.

Verify Issue Source

  • I verified the issue was caused by Discord.Net.

Check your intents

  • I double checked that I have the required intents.

Description

So, for some reason TreatAsRegex is off by default, which was not mentioned and probably many many bots needed refactoring, however even with TreatAsRegex enabled, for some reason a simple regex like [ComponentInteraction("trigger.*.runin.*$*", true), CheckPermissions] Does not work.

For some reason, it goes through all preconditions just fine but never runs the actual method

Version

3.9

Working Version

3.8.1

Logs

No stack traces

Sample

No response

Packages

None

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
cjbonncommented, Jan 3, 2023

Tested using same case before, worked for both, and also worked via regex. Looks good on my end, thanks!

0reactions
Cenngocommented, Jan 3, 2023

yea no rush, hope you feel better soon

Read more comments on GitHub >

github_iconTop Results From Across the Web

regex match() isn't working with input.value
In my code I have an input when a player can write his name and then click the 'start' button to start the...
Read more >
RegEx bug with big files | Notepad++ Community
in a file that has no occurrences of it and that it's bigger than 33336155 characters, the whole text is selected and no...
Read more >
Replace w regex not working
I'm having a similar problem as other users who are trying to use a regex to replace something. The “Search” button shows “matched...
Read more >
Regular expression containing \K does not work with step- ...
When I say, for instance, 1 + 4 clicks on 'Replace' I want to say that, with caret located above the sample text,...
Read more >
Best Practices for Regular Expressions in .NET
Learn how to create efficient, effective regular expressions in .NET.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found