SupportHelper: add "Run Snippet" to all issue posts (#4289)
This commit is contained in:
parent
a72fe61593
commit
6a1ba61b29
1 changed files with 1 additions and 1 deletions
|
|
@ -317,7 +317,7 @@ export default definePlugin({
|
|||
}
|
||||
}
|
||||
|
||||
if (props.message.author.id === VENBOT_USER_ID && (props.channel.parent_id === KNOWN_ISSUES_CHANNEL_ID || props.channel.parent_id === SUPPORT_CATEGORY_ID)) {
|
||||
if (props.channel.parent_id === KNOWN_ISSUES_CHANNEL_ID || (props.channel.parent_id === SUPPORT_CATEGORY_ID && props.message.author.id === VENBOT_USER_ID)) {
|
||||
const match = CodeBlockRe.exec(props.message.content || props.message.embeds[0]?.rawDescription || "");
|
||||
if (match) {
|
||||
buttons.push(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue