Exemple #1
0
    [RequireOwner] // Only for owners, as this is sensitive information meant for debugging.
    public async Task GetIpAddress()
    {
        using var setTyping = Context.Channel.EnterTypingState();

        var criteria = new InfoCriteria()
        {
            InfoRequest = InfoRequest.IpAddress
        };

        var result = await _infoManager.GetInfo(criteria);

        await ReplyAsync($"My current public IP Address is `{result.IpAddress}`.");
    }