def take_off_brackets(arg, noand=0):
    """Takes off special characters from discord ids, used to turn discord channel/role ids into ints"""
    msg = str(arg)
    word = ""
    for i in range(len(msg)):
        if msg[i] != "<" and msg[i] != "#" and msg[i] != "@" and msg[i] != ">":
            if noand != 1 and msg[i] != "&":
                word += msg[i]
    return word