Use Result.Success property instead of Result.FromSuccess() (#283)
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
309d900067
commit
a80debf1b1
18 changed files with 59 additions and 54 deletions
|
@ -54,7 +54,7 @@ public class GuildMemberJoinedResponder : IResponder<IGuildMemberAdd>
|
|||
if (GuildSettings.WelcomeMessagesChannel.Get(cfg).Empty()
|
||||
|| GuildSettings.WelcomeMessage.Get(cfg) is "off" or "disable" or "disabled")
|
||||
{
|
||||
return Result.FromSuccess();
|
||||
return Result.Success;
|
||||
}
|
||||
|
||||
Messages.Culture = GuildSettings.Language.Get(cfg);
|
||||
|
@ -85,7 +85,7 @@ public class GuildMemberJoinedResponder : IResponder<IGuildMemberAdd>
|
|||
{
|
||||
if (!GuildSettings.ReturnRolesOnRejoin.Get(cfg))
|
||||
{
|
||||
return Result.FromSuccess();
|
||||
return Result.Success;
|
||||
}
|
||||
|
||||
var assignRoles = new List<Snowflake>();
|
||||
|
|
Reference in a new issue