Skip to content

await session.BanGroupMemberAsync(context.GroupId, context.UserId, new TimeSpan(2000))这个是指定用户禁言吗?测试好像不起作用呢? #28

Answered by SlimeNull
867525168 asked this question in Q&A
Discussion options

You must be logged in to vote

我注意到你使用的是 new TimeSpan, 它的间隔太小了, 甚至不到1s, 你可以使用 TimeSpan.FromMinutes(10) 来创建十分钟的时间间隔.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by SlimeNull
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants