mirror of
https://github.com/Jetsparrow/jetherald.git
synced 2026-01-21 07:56:09 +03:00
Don't await TriggerTypingAsync
This commit is contained in:
parent
bb226a9ece
commit
eff94e806b
@ -24,7 +24,7 @@ namespace JetHerald
|
|||||||
if (description == null)
|
if (description == null)
|
||||||
description = name;
|
description = name;
|
||||||
|
|
||||||
await ctx.TriggerTypingAsync();
|
_ = ctx.TriggerTypingAsync();
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@ -50,7 +50,7 @@ namespace JetHerald
|
|||||||
[Description("The admin token of the topic to be deleted.")]
|
[Description("The admin token of the topic to be deleted.")]
|
||||||
string adminToken)
|
string adminToken)
|
||||||
{
|
{
|
||||||
await ctx.TriggerTypingAsync();
|
_ = ctx.TriggerTypingAsync();
|
||||||
var changed = await db.DeleteTopic(name, adminToken);
|
var changed = await db.DeleteTopic(name, adminToken);
|
||||||
if (changed > 0)
|
if (changed > 0)
|
||||||
await ctx.RespondAsync($"deleted {name} and all its subscriptions");
|
await ctx.RespondAsync($"deleted {name} and all its subscriptions");
|
||||||
@ -62,7 +62,7 @@ namespace JetHerald
|
|||||||
[Description("List all subscriptions in this channel.")]
|
[Description("List all subscriptions in this channel.")]
|
||||||
public async Task ListSubscriptions(CommandContext ctx)
|
public async Task ListSubscriptions(CommandContext ctx)
|
||||||
{
|
{
|
||||||
await ctx.TriggerTypingAsync();
|
_ = ctx.TriggerTypingAsync();
|
||||||
|
|
||||||
var topics = await db.GetTopicsForChat((long)ctx.Channel.Id, "Discord");
|
var topics = await db.GetTopicsForChat((long)ctx.Channel.Id, "Discord");
|
||||||
|
|
||||||
@ -79,7 +79,7 @@ namespace JetHerald
|
|||||||
string token
|
string token
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
await ctx.TriggerTypingAsync();
|
_ = ctx.TriggerTypingAsync();
|
||||||
|
|
||||||
var topic = await db.GetTopic(token, (long)ctx.Channel.Id, "Discord");
|
var topic = await db.GetTopic(token, (long)ctx.Channel.Id, "Discord");
|
||||||
|
|
||||||
@ -104,7 +104,7 @@ namespace JetHerald
|
|||||||
string name
|
string name
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
await ctx.TriggerTypingAsync();
|
_ = ctx.TriggerTypingAsync();
|
||||||
|
|
||||||
int affected = await db.RemoveSubscription(name, (long)ctx.Channel.Id, "Discord");
|
int affected = await db.RemoveSubscription(name, (long)ctx.Channel.Id, "Discord");
|
||||||
if (affected >= 1)
|
if (affected >= 1)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user