📅  最后修改于: 2022-03-11 14:49:18.541000             🧑  作者: Mango
// Send message in dms
if (ctx.Channel.IsPrivate) { // Command from Guild/Server
await ctx.Channel.SendMessageAsync("Test").ConfigureAwait(false);
} else { // Command from DM
await ctx.Member.SendMessageAsync("Test").ConfigureAwait(false);
}