-
Notifications
You must be signed in to change notification settings - Fork 1
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
Null channels within private thread channels. #335
Merged
jf-06
merged 8 commits into
master
from
hotfix/support-forum-channels-for-script-logging
Sep 17, 2024
Merged
Null channels within private thread channels. #335
jf-06
merged 8 commits into
master
from
hotfix/support-forum-channels-for-script-logging
Sep 17, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~ Take into account that forum channels exist. ~ Allow logging of already existing script hashes (just log the hash instead of the whole content)
jf-06
changed the title
Update ScriptLogger.cs
Null channels within private thread channels.
Sep 3, 2024
Will update this branch with a patch and deploy it to production to temporarily mitigate this issue until the mentioned issue is rectified. |
3 tasks
jf-06
added
priority: key deliverable
The issue is high priority and normally has a very close target quarter.
platform: windows
This issue relates to windows.
platform: linux
This issue relates to Linux.
platform: mac-os
This issue relates to MacOS.
opsec: love-all-environments
SEC-04-LAE
opsec: love-all-platforms
SEC-04-LAP
opsec: public-ops
SEC-02-PUBOPS
opsec: discord-gateway
SEC-25-GATEWAY
opsec: we-love-clean-code
SEC-10-WLCC
area: discord
Issue relates to discord
area: code-ops
Issue relates to the issue of Code Ops
kind: hotfix
A bug fix that is to be implemented as fast as possible. Always KD.
area: dependencies
Pull requests that update a dependency file
labels
Sep 3, 2024
#!components: grid-bot discord-net/Discord.Net#2997 and #335 In the case of interactions, fallback to ChannelId. In the case of messages, fallback to Thread ID.
#!skip-build!# Add ability to append suffixes to versions
#!skip-build!#
#!skip-build!#
Implement extension methods for the socket interaction context class for the following purposes: ~ Getting the channel as a string, taking into consideration that the channel can be null when interactions are executed within private thread channels. ~ Getting the guild as an object from the interaction context when the interaction is coming from a private thread channel, as the conventional method of checking the type of the interaction's channel against SocketGuildChannel will not work.
~ Move Regex for format parts to a GeneratedRegex function to improve performance. ~ Only read the LuaVM template once, as it is read from the resources on every subsequent use. ~ Account for the absence of the LuaVM in results.
#!components: grid-bot ExecuteScript.cs: ~ Take reference to current DiscordShardedClient. ~ Move correspondence calls when errors are called to use LuaError instead of regular follow ups. ~ Add detection of scripts containing code blocks within zero content (causes exception) ~ Rewrite error for scripts that contain unicode to reduce ambiguity. ~ Rename GridJob to ClientJob. ~ Clean up call to PollDeletion ~ Integrate use of GetChannelAsString and GetGuild. OnSlashCommand, OnSlashCommandExecuted, LoggerFactory, ScriptLogger: ~ Clean up usings. ~ Rewrite GetGuildId to use extension methods. ~ Change around references to channel to use extension methods.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area: code-ops
Issue relates to the issue of Code Ops
area: dependencies
Pull requests that update a dependency file
area: discord
Issue relates to discord
kind: hotfix
A bug fix that is to be implemented as fast as possible. Always KD.
opsec: discord-gateway
SEC-25-GATEWAY
opsec: love-all-environments
SEC-04-LAE
opsec: love-all-platforms
SEC-04-LAP
opsec: public-ops
SEC-02-PUBOPS
opsec: we-love-clean-code
SEC-10-WLCC
platform: linux
This issue relates to Linux.
platform: mac-os
This issue relates to MacOS.
platform: windows
This issue relates to windows.
priority: key deliverable
The issue is high priority and normally has a very close target quarter.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Please read into discord-net/Discord.Net#2997 for more information.
Example exception: