Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
K
Koishi Plugin Guild Verifier
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Koishi Plugin Guild Verifier
Commits
1386aa04
Commit
1386aa04
authored
Dec 19, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
logging
parent
194d8974
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/index.ts
src/index.ts
+3
-3
No files found.
src/index.ts
View file @
1386aa04
...
...
@@ -32,11 +32,11 @@ export default class GuildVerifier {
private
config
:
GuildVerifierConfig
;
private
getUserDisplayName
(
session
:
Session
)
{
return
`
${
session
.
username
||
'
未知用户
'
}
(
${
session
.
userId
}
)`
;
return
session
.
userId
;
}
private
getGuildDisplayName
(
session
:
Session
)
{
return
`
${
session
.
guildName
||
'
未知群组
'
}
(
${
session
.
guildId
}
)`
;
return
session
.
guildId
;
}
@
UseEvent
(
'
guild-request
'
)
...
...
@@ -94,7 +94,7 @@ export default class GuildVerifier {
this
.
logger
.
error
(
`handleGuildRequest for
${
messageId
}
failed:
${
e
.
toString
()}
`
,
);
return
`操作失败
:
${
e
.
toString
()}
`
;
return
`操作失败
,请查看服务器日志。
`
;
}
return
`操作成功。`
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment